mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
[Settings] Reset Activation Key to Default Value (#26449)
* Add Default Value field to all controls * Add reset button to Control field * Improve button Improve appearance Add ToolTipService Add AutomationProperties * Move Reset button to Shortcut Dialog * Fix Video Conferencing crash * Change `Use Default` to `Reset`
This commit is contained in:
@@ -158,7 +158,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
{
|
||||
if (_powerOcrSettings.Properties.ActivationShortcut != value)
|
||||
{
|
||||
_powerOcrSettings.Properties.ActivationShortcut = value;
|
||||
_powerOcrSettings.Properties.ActivationShortcut = value ?? _powerOcrSettings.Properties.DefaultActivationShortcut;
|
||||
OnPropertyChanged(nameof(ActivationShortcut));
|
||||
|
||||
_settingsUtils.SaveSettings(_powerOcrSettings.ToJsonString(), PowerOcrSettings.ModuleName);
|
||||
|
||||
Reference in New Issue
Block a user