Lots of small tweaks (#5960)

This commit is contained in:
Clint Rutkas
2020-08-14 11:50:14 -07:00
committed by GitHub
parent b8d720d06f
commit e4f9c02d11
13 changed files with 254 additions and 254 deletions

View File

@@ -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);
}

View File

@@ -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);
}
}