mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
Fix archive tab switch code
This commit is contained in:
parent
371f3b3869
commit
99b126f0ef
1 changed files with 4 additions and 7 deletions
|
@ -457,13 +457,10 @@ void archive_switch_tab(ArchiveBrowserView* browser, InputKey key) {
|
|||
|
||||
browser->last_tab_switch_dir = key;
|
||||
|
||||
for(int i = 0; i < 2; i++) {
|
||||
if(key == InputKeyLeft) {
|
||||
tab = ((tab - 1) + ArchiveTabTotal) % ArchiveTabTotal;
|
||||
} else {
|
||||
tab = (tab + 1) % ArchiveTabTotal;
|
||||
}
|
||||
break;
|
||||
if(key == InputKeyLeft) {
|
||||
tab = ((tab - 1) + ArchiveTabTotal) % ArchiveTabTotal;
|
||||
} else {
|
||||
tab = (tab + 1) % ArchiveTabTotal;
|
||||
}
|
||||
|
||||
browser->is_root = true;
|
||||
|
|
Loading…
Reference in a new issue