Enum names

This commit is contained in:
Willy-JL
2025-01-17 00:39:21 +00:00
parent 521cce3d04
commit 9f464e4a29

View File

@@ -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;
}
}