mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 08:08:36 -07:00
Archive: Fix favorite's parent folders thinking they are favorited too
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
- OFW: Furi: wrap message queue in container, prepare it for epoll (by @skotopes)
|
- OFW: Furi: wrap message queue in container, prepare it for epoll (by @skotopes)
|
||||||
|
|
||||||
### Fixed:
|
### Fixed:
|
||||||
|
- Archive: Fix favorite's parent folders thinking they are favorited too (by @Willy-JL)
|
||||||
- OFW: Accessor: disable expansion service on start (by @skotopes)
|
- OFW: Accessor: disable expansion service on start (by @skotopes)
|
||||||
|
|
||||||
<!-- ### Removed:
|
<!-- ### Removed:
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ bool archive_favorites_delete(const char* format, ...) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(furi_string_search(buffer, filename)) {
|
if(!furi_string_equal(buffer, filename)) {
|
||||||
archive_file_append(ARCHIVE_FAV_TEMP_PATH, "%s\n", furi_string_get_cstr(buffer));
|
archive_file_append(ARCHIVE_FAV_TEMP_PATH, "%s\n", furi_string_get_cstr(buffer));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -233,7 +233,7 @@ bool archive_is_favorite(const char* format, ...) {
|
|||||||
if(!furi_string_size(buffer)) {
|
if(!furi_string_size(buffer)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(!furi_string_search(buffer, filename)) {
|
if(furi_string_equal(buffer, filename)) {
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -274,7 +274,7 @@ bool archive_favorites_rename(const char* src, const char* dst) {
|
|||||||
archive_file_append(
|
archive_file_append(
|
||||||
ARCHIVE_FAV_TEMP_PATH,
|
ARCHIVE_FAV_TEMP_PATH,
|
||||||
"%s\n",
|
"%s\n",
|
||||||
furi_string_search(buffer, path) ? furi_string_get_cstr(buffer) : dst);
|
!furi_string_equal(buffer, path) ? furi_string_get_cstr(buffer) : dst);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user