mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Enum names
This commit is contained in:
@@ -65,7 +65,7 @@ static void archive_update_formatted_path(ArchiveBrowserViewModel* model) {
|
||||
}
|
||||
|
||||
ArchiveTabEnum tab = archive_get_tab(browser);
|
||||
if(!momentum_settings.browser_path_mode || archive_is_home(browser)) {
|
||||
if(momentum_settings.browser_path_mode == BrowserPathOff || archive_is_home(browser)) {
|
||||
furi_string_set(browser->formatted_path, ArchiveTabNames[tab]);
|
||||
} else {
|
||||
const char* path = furi_string_get_cstr(browser->path);
|
||||
@@ -99,9 +99,12 @@ static void archive_update_formatted_path(ArchiveBrowserViewModel* model) {
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
case BrowserPathCurrent:
|
||||
path_extract_basename(path, browser->formatted_path);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user