mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
fix: Auto backup localization key names
This commit is contained in:
@@ -110,7 +110,7 @@ namespace hex::plugin::builtin {
|
||||
s_networkInterfaceServiceEnabled = value.get<bool>(false);
|
||||
});
|
||||
|
||||
ContentRegistry::Settings::onChange("hex.builtin.setting.general", "hex.builtin.setting.general.auto_backup_time", [](const ContentRegistry::Settings::SettingsValue &value) {
|
||||
ContentRegistry::Settings::onChange("hex.builtin.setting.general", "hex.builtin.setting.general.backups.auto_backup_time", [](const ContentRegistry::Settings::SettingsValue &value) {
|
||||
s_autoBackupTime = value.get<int>(0) * 30;
|
||||
});
|
||||
|
||||
|
||||
@@ -747,7 +747,7 @@ namespace hex::plugin::builtin {
|
||||
auto backupFilePathOld = path / BackupFileName;
|
||||
backupFilePathOld.replace_extension(".hexproj.old");
|
||||
|
||||
bool autoBackupsEnabled = ContentRegistry::Settings::read<int>("hex.builtin.setting.general", "hex.builtin.setting.general.auto_backup_time", 0) > 0;
|
||||
bool autoBackupsEnabled = ContentRegistry::Settings::read<int>("hex.builtin.setting.general", "hex.builtin.setting.general.backups.auto_backup_time", 0) > 0;
|
||||
auto autoBackups = recent::PopupAutoBackups::getAutoBackups();
|
||||
bool hasAutoBackups = autoBackupsEnabled && !autoBackups.empty();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user