From 248cf5f852c418d10ace65d71c42b3ee3e01e9ec Mon Sep 17 00:00:00 2001 From: nminaylov Date: Thu, 24 Nov 2022 16:54:46 +0300 Subject: [PATCH] Trim file name from start path --- applications/services/gui/modules/file_browser_worker.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/services/gui/modules/file_browser_worker.c b/applications/services/gui/modules/file_browser_worker.c index 121a9b970..15382272a 100644 --- a/applications/services/gui/modules/file_browser_worker.c +++ b/applications/services/gui/modules/file_browser_worker.c @@ -373,6 +373,10 @@ BrowserWorker* browser->path_current = furi_string_alloc_set(path); browser->path_next = furi_string_alloc_set(path); + if(browser_path_is_file(browser->path_start)) { + browser_path_trim(browser->path_start); + } + browser->thread = furi_thread_alloc(); furi_thread_set_name(browser->thread, "BrowserWorker"); furi_thread_set_stack_size(browser->thread, 2048);