[Screen Ruler] Update module interface on activation hotkey change (#20237)

This commit is contained in:
Andrey Nekrasov
2022-09-02 18:28:56 +03:00
committed by GitHub
parent dda4bfa6b8
commit 5d4b365910

View File

@@ -3,7 +3,9 @@
// See the LICENSE file in the project root for more information.
using System;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
@@ -157,6 +159,12 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
{
Settings.Properties.ActivationShortcut = value;
NotifyPropertyChanged();
SendConfigMSG(
string.Format(
CultureInfo.InvariantCulture,
"{{ \"powertoys\": {{ \"{0}\": {1} }} }}",
MeasureToolSettings.ModuleName,
JsonSerializer.Serialize(Settings)));
}
}
}