mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 19:01:47 +03:00
Fix archive tab switch code
This commit is contained in:
parent
371f3b3869
commit
99b126f0ef
@ -457,13 +457,10 @@ void archive_switch_tab(ArchiveBrowserView* browser, InputKey key) {
|
|||||||
|
|
||||||
browser->last_tab_switch_dir = key;
|
browser->last_tab_switch_dir = key;
|
||||||
|
|
||||||
for(int i = 0; i < 2; i++) {
|
if(key == InputKeyLeft) {
|
||||||
if(key == InputKeyLeft) {
|
tab = ((tab - 1) + ArchiveTabTotal) % ArchiveTabTotal;
|
||||||
tab = ((tab - 1) + ArchiveTabTotal) % ArchiveTabTotal;
|
} else {
|
||||||
} else {
|
tab = (tab + 1) % ArchiveTabTotal;
|
||||||
tab = (tab + 1) % ArchiveTabTotal;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
browser->is_root = true;
|
browser->is_root = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user