From ab43a613b2121e113c7bd49430351c8dc794543a Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 25 Aug 2025 21:46:51 +0200 Subject: [PATCH] ios fixes --- base/sources/ts/ui_files.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/base/sources/ts/ui_files.ts b/base/sources/ts/ui_files.ts index d92c5920..65c91884 100644 --- a/base/sources/ts/ui_files.ts +++ b/base/sources/ts/ui_files.ts @@ -178,6 +178,8 @@ function ui_files_file_browser(handle: ui_handle_t, drag_files: bool = false, se if (is_cloud && f != ".." && !ui_files_offline) { if (ui_files_icon_map == null) { ui_files_icon_map = map_create(); + } + if (ui_files_icon_file_map == null) { ui_files_icon_file_map = map_create(); } icon = map_get(ui_files_icon_map, handle.text + path_sep + f); @@ -192,7 +194,14 @@ function ui_files_file_browser(handle: ui_handle_t, drag_files: bool = false, se map_set(ui_files_icon_map, handle.text + path_sep + f, empty); _ui_files_file_browser_handle = handle; + + ///if arm_ios + let icon_file_full: string = handle.text + path_sep + icon_file; + icon_file_full = string_replace_all(icon_file_full, "/", "_"); + map_set(ui_files_icon_file_map, icon_file_full, f); + ///else map_set(ui_files_icon_file_map, icon_file, f); + ///end file_cache_cloud(handle.text + path_sep + icon_file, function (abs: string) { if (abs != null) { @@ -308,6 +317,9 @@ function ui_files_file_browser(handle: ui_handle_t, drag_files: bool = false, se ui_files_icon_map = map_create(); } let shandle: string = handle.text + path_sep + f; + ///if arm_ios + shandle = document_directory + shandle; + ///end icon = map_get(ui_files_icon_map, shandle); if (icon == null) { let rt: render_target_t = map_get(render_path_render_targets, "empty_black");