Fix desktop keybinds path

This commit is contained in:
Willy-JL
2023-07-14 21:23:50 +02:00
parent fb91f09bda
commit 4a56baf158
2 changed files with 4 additions and 1 deletions

View File

@@ -11,7 +11,8 @@
#define DESKTOP_SETTINGS_MAGIC (0x17) #define DESKTOP_SETTINGS_MAGIC (0x17)
#define DESKTOP_SETTINGS_VER (11) #define DESKTOP_SETTINGS_VER (11)
#define DESKTOP_KEYBINDS_PATH CFG_PATH(".desktop.keybinds") #define DESKTOP_KEYBINDS_OLD_PATH CFG_PATH(".desktop.keybinds")
#define DESKTOP_KEYBINDS_PATH CFG_PATH("desktop.keybinds")
#define DESKTOP_KEYBINDS_MAGIC (0x14) #define DESKTOP_KEYBINDS_MAGIC (0x14)
#define DESKTOP_KEYBINDS_VER (1) #define DESKTOP_KEYBINDS_VER (1)

View File

@@ -49,6 +49,8 @@ void flipper_migrate_files() {
// Migrate files // Migrate files
storage_common_copy(storage, ARCHIVE_FAV_OLD_PATH, ARCHIVE_FAV_PATH); storage_common_copy(storage, ARCHIVE_FAV_OLD_PATH, ARCHIVE_FAV_PATH);
storage_common_remove(storage, ARCHIVE_FAV_OLD_PATH); storage_common_remove(storage, ARCHIVE_FAV_OLD_PATH);
storage_common_copy(storage, DESKTOP_KEYBINDS_OLD_PATH, DESKTOP_KEYBINDS_PATH);
storage_common_remove(storage, DESKTOP_KEYBINDS_OLD_PATH);
// Int -> Ext // Int -> Ext
storage_common_copy(storage, BT_SETTINGS_OLD_PATH, BT_SETTINGS_PATH); storage_common_copy(storage, BT_SETTINGS_OLD_PATH, BT_SETTINGS_PATH);
storage_common_remove(storage, BT_SETTINGS_OLD_PATH); storage_common_remove(storage, BT_SETTINGS_OLD_PATH);