mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-22 18:17:19 +00:00
[MWB]Fix crash when trying to read null settings (#27682)
This commit is contained in:
parent
3a03ff034f
commit
a1f21fd6f3
@ -56,13 +56,25 @@ namespace Microsoft.PowerToys.Settings.UI.Library
|
||||
{
|
||||
Version = "1.1";
|
||||
|
||||
Properties.ToggleEasyMouseShortcut = ConvertMouseWithoutBordersHotKeyToPowerToys(Properties.HotKeyToggleEasyMouse.Value);
|
||||
if (Properties.HotKeyToggleEasyMouse != null)
|
||||
{
|
||||
Properties.ToggleEasyMouseShortcut = ConvertMouseWithoutBordersHotKeyToPowerToys(Properties.HotKeyToggleEasyMouse.Value);
|
||||
}
|
||||
|
||||
Properties.LockMachineShortcut = ConvertMouseWithoutBordersHotKeyToPowerToys(Properties.HotKeyLockMachine.Value);
|
||||
if (Properties.HotKeyLockMachine != null)
|
||||
{
|
||||
Properties.LockMachineShortcut = ConvertMouseWithoutBordersHotKeyToPowerToys(Properties.HotKeyLockMachine.Value);
|
||||
}
|
||||
|
||||
Properties.ReconnectShortcut = ConvertMouseWithoutBordersHotKeyToPowerToys(Properties.HotKeyReconnect.Value);
|
||||
if (Properties.HotKeyReconnect != null)
|
||||
{
|
||||
Properties.ReconnectShortcut = ConvertMouseWithoutBordersHotKeyToPowerToys(Properties.HotKeyReconnect.Value);
|
||||
}
|
||||
|
||||
Properties.Switch2AllPCShortcut = ConvertMouseWithoutBordersHotKeyToPowerToys(Properties.HotKeySwitch2AllPC.Value);
|
||||
if (Properties.HotKeySwitch2AllPC != null)
|
||||
{
|
||||
Properties.Switch2AllPCShortcut = ConvertMouseWithoutBordersHotKeyToPowerToys(Properties.HotKeySwitch2AllPC.Value);
|
||||
}
|
||||
|
||||
Properties.HotKeyToggleEasyMouse = null;
|
||||
Properties.HotKeyLockMachine = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user