mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[Settings]Better errors when failing to backup (#26762)
* [Settings] settings.json files broken error is updated. * [Settings] Related optional messages added to error logs * Update src/settings-ui/Settings.UI/Strings/en-us/Resources.resw
This commit is contained in:
@@ -3040,6 +3040,9 @@ Activate by holding the key for the character you want to add an accent to, then
|
||||
<data name="General_SettingsBackupAndRestore_BackupError" xml:space="preserve">
|
||||
<value>There was an error. Try another backup location.</value>
|
||||
</data>
|
||||
<data name="General_SettingsBackupAndRestore_SettingsFormatError" xml:space="preserve">
|
||||
<value>There was an error in the settings format. Please check the settings file:</value>
|
||||
</data>
|
||||
<data name="General_SettingsBackupAndRestore_BackupComplete" xml:space="preserve">
|
||||
<value>Backup completed.</value>
|
||||
</data>
|
||||
|
||||
@@ -774,7 +774,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
|
||||
_settingsBackupRestoreMessageVisible = true;
|
||||
_backupRestoreMessageSeverity = results.Severity;
|
||||
_settingsBackupMessage = GetResourceString(results.Message);
|
||||
_settingsBackupMessage = GetResourceString(results.Message) + results.OptionalMessage;
|
||||
|
||||
// now we do a dry run to get the results for "setting match"
|
||||
var settingsUtils = new SettingsUtils();
|
||||
|
||||
Reference in New Issue
Block a user