Skip to content

Commit

Permalink
[Screen Ruler] Update module interface on activation hotkey change (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe authored Sep 2, 2022
1 parent dda4bfa commit 5d4b365
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -157,6 +159,12 @@ public HotkeySettings ActivationShortcut
{
Settings.Properties.ActivationShortcut = value;
NotifyPropertyChanged();
SendConfigMSG(
string.Format(
CultureInfo.InvariantCulture,
"{{ \"powertoys\": {{ \"{0}\": {1} }} }}",
MeasureToolSettings.ModuleName,
JsonSerializer.Serialize(Settings)));
}
}
}
Expand Down

0 comments on commit 5d4b365

Please sign in to comment.