1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

Add Internal Tab

This commit is contained in:
Clara K
2023-02-11 15:39:30 +01:00
committed by GitHub
parent aa646c7590
commit a6dc16a98c

View File

@@ -451,11 +451,14 @@ void archive_switch_tab(ArchiveBrowserView* browser, InputKey key) {
browser->last_tab_switch_dir = key; browser->last_tab_switch_dir = key;
if(key == InputKeyLeft) { for(int i = 0; i < 2; i++) {
tab = ((tab - 1) + ArchiveTabTotal) % ArchiveTabTotal; if(key == InputKeyLeft) {
} else { tab = ((tab - 1) + ArchiveTabTotal) % ArchiveTabTotal;
tab = (tab + 1) % ArchiveTabTotal; } else {
} tab = (tab + 1) % ArchiveTabTotal;
}
if(tab == ArchiveTabInternal && !furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug)) continue;
break;
browser->is_root = true; browser->is_root = true;
archive_set_tab(browser, tab); archive_set_tab(browser, tab);