mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[MWB]Fix crash when trying to read null settings (#27682)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user