From 8fcea35682e7d127da43b309dbae4c9d113d574f Mon Sep 17 00:00:00 2001 From: luboslenco Date: Wed, 6 May 2026 10:28:40 +0200 Subject: [PATCH] paint: fix cloud cache browsing --- paint/sources/ui_files.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/paint/sources/ui_files.c b/paint/sources/ui_files.c index 2bff8616..9325e0db 100644 --- a/paint/sources/ui_files.c +++ b/paint/sources/ui_files.c @@ -392,7 +392,14 @@ char *ui_files_file_browser(ui_handle_t *handle, bool drag_files, char *search, buffer_t *buffer = iron_load_blob(blob_path); project_t *raw; - if (import_arm_is_old(buffer)) { + +#ifdef IRON_WINDOWS + bool is_cloud_cache = string_index_of(handle->text, "\\cloud\\") >= 0; +#else + bool is_cloud_cache = string_index_of(handle->text, "/cloud/") >= 0; +#endif + + if (import_arm_is_old(buffer) && !is_cloud_cache) { raw = import_arm_from_old(buffer); } else if (import_arm_has_version(buffer)) {