mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-11 06:09:08 -07:00
Enforce "show hidden files" in dialogs and not archive
Archive "file" tabs (like SubGHz and so on) hide dot files Archive "browser" tabs (like /ext) follow user choice Dialogs (everything else) follow dev choice, unless user chose to show hidden files
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <toolbox/api_lock.h>
|
||||
#include <assets_icons.h>
|
||||
#include <storage/storage.h>
|
||||
#include <momentum/momentum.h>
|
||||
|
||||
/****************** File browser ******************/
|
||||
|
||||
@@ -37,7 +38,8 @@ bool dialog_file_browser_show(
|
||||
.file_icon = options ? options->icon : NULL,
|
||||
.hide_ext = options ? options->hide_ext : true,
|
||||
.skip_assets = options ? options->skip_assets : true,
|
||||
.hide_dot_files = options ? options->hide_dot_files : true,
|
||||
.hide_dot_files =
|
||||
(options ? options->hide_dot_files : true && !momentum_settings.show_hidden_files),
|
||||
.preselected_filename = path,
|
||||
.item_callback = options ? options->item_loader_callback : NULL,
|
||||
.item_callback_context = options ? options->item_loader_context : NULL,
|
||||
|
||||
Reference in New Issue
Block a user