mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
Lots of small tweaks (#5960)
This commit is contained in:
@@ -45,7 +45,7 @@ namespace PowerLauncher.ViewModel
|
||||
private Query _currentQuery;
|
||||
private string _queryTextBeforeLeaveResults;
|
||||
|
||||
private CancellationTokenSource _updateSource { get; set; }
|
||||
private CancellationTokenSource _updateSource;
|
||||
|
||||
private CancellationToken _updateToken;
|
||||
private bool _saved;
|
||||
@@ -626,12 +626,14 @@ namespace PowerLauncher.ViewModel
|
||||
string hotkeyStr = hotkeyModel.ToString();
|
||||
try
|
||||
{
|
||||
Hotkey hotkey = new Hotkey();
|
||||
hotkey.Alt = hotkeyModel.Alt;
|
||||
hotkey.Shift = hotkeyModel.Shift;
|
||||
hotkey.Ctrl = hotkeyModel.Ctrl;
|
||||
hotkey.Win = hotkeyModel.Win;
|
||||
hotkey.Key = (byte)KeyInterop.VirtualKeyFromKey(hotkeyModel.CharKey);
|
||||
Hotkey hotkey = new Hotkey
|
||||
{
|
||||
Alt = hotkeyModel.Alt,
|
||||
Shift = hotkeyModel.Shift,
|
||||
Ctrl = hotkeyModel.Ctrl,
|
||||
Win = hotkeyModel.Win,
|
||||
Key = (byte)KeyInterop.VirtualKeyFromKey(hotkeyModel.CharKey)
|
||||
};
|
||||
|
||||
_hotkeyHandle = _hotkeyManager.RegisterHotkey(hotkey, action);
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace PowerLauncher.ViewModel
|
||||
_storage.Save();
|
||||
}
|
||||
|
||||
private static Internationalization _translater => InternationalizationManager.Instance;
|
||||
private static Internationalization Translater => InternationalizationManager.Instance;
|
||||
|
||||
public string ActivatedTimes => string.Format(CultureInfo.InvariantCulture, _translater.GetTranslation("about_activate_times"), Settings.ActivateTimes);
|
||||
public string ActivatedTimes => string.Format(CultureInfo.InvariantCulture, Translater.GetTranslation("about_activate_times"), Settings.ActivateTimes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user