mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02: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:
@@ -319,8 +319,9 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
{
|
||||
if (value != _cameraAndMicrophoneMuteHotkey)
|
||||
{
|
||||
_cameraAndMicrophoneMuteHotkey = value;
|
||||
Settings.Properties.MuteCameraAndMicrophoneHotkey.Value = value;
|
||||
var hotkey = value ?? Settings.Properties.DefaultMuteCameraAndMicrophoneHotkey;
|
||||
_cameraAndMicrophoneMuteHotkey = hotkey;
|
||||
Settings.Properties.MuteCameraAndMicrophoneHotkey.Value = hotkey;
|
||||
RaisePropertyChanged(nameof(CameraAndMicrophoneMuteHotkey));
|
||||
}
|
||||
}
|
||||
@@ -337,8 +338,9 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
{
|
||||
if (value != _microphoneMuteHotkey)
|
||||
{
|
||||
_microphoneMuteHotkey = value;
|
||||
Settings.Properties.MuteMicrophoneHotkey.Value = value;
|
||||
var hotkey = value ?? Settings.Properties.DefaultMuteMicrophoneHotkey;
|
||||
_microphoneMuteHotkey = hotkey;
|
||||
Settings.Properties.MuteMicrophoneHotkey.Value = hotkey;
|
||||
RaisePropertyChanged(nameof(MicrophoneMuteHotkey));
|
||||
}
|
||||
}
|
||||
@@ -355,8 +357,9 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
{
|
||||
if (value != _microphonePushToTalkHotkey)
|
||||
{
|
||||
_microphonePushToTalkHotkey = value;
|
||||
Settings.Properties.PushToTalkMicrophoneHotkey.Value = value;
|
||||
var hotkey = value ?? Settings.Properties.DefaultMuteMicrophoneHotkey;
|
||||
_microphonePushToTalkHotkey = hotkey;
|
||||
Settings.Properties.PushToTalkMicrophoneHotkey.Value = hotkey;
|
||||
RaisePropertyChanged(nameof(MicrophonePushToTalkHotkey));
|
||||
}
|
||||
}
|
||||
@@ -391,8 +394,9 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
{
|
||||
if (value != _cameraMuteHotkey)
|
||||
{
|
||||
_cameraMuteHotkey = value;
|
||||
Settings.Properties.MuteCameraHotkey.Value = value;
|
||||
var hotkey = value ?? Settings.Properties.DefaultMuteCameraHotkey;
|
||||
_cameraMuteHotkey = hotkey;
|
||||
Settings.Properties.MuteCameraHotkey.Value = hotkey;
|
||||
RaisePropertyChanged(nameof(CameraMuteHotkey));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user