mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix ShowOnlyMostUsedCMDsNumber default value
This commit is contained in:
parent
aab213a6b9
commit
9be546d6c7
1 changed files with 7 additions and 1 deletions
|
|
@ -384,9 +384,15 @@ namespace Flow.Launcher.Plugin.Shell
|
||||||
Context = context;
|
Context = context;
|
||||||
_settings = context.API.LoadSettingJsonStorage<Settings>();
|
_settings = context.API.LoadSettingJsonStorage<Settings>();
|
||||||
context.API.RegisterGlobalKeyboardCallback(API_GlobalKeyboardEvent);
|
context.API.RegisterGlobalKeyboardCallback(API_GlobalKeyboardEvent);
|
||||||
|
// Since the old Settings class set default value of ShowOnlyMostUsedCMDsNumber to 0 which is a wrong value,
|
||||||
|
// we need to fix it here to make sure the default value is 5
|
||||||
|
if (_settings.ShowOnlyMostUsedCMDsNumber == 0)
|
||||||
|
{
|
||||||
|
_settings.ShowOnlyMostUsedCMDsNumber = 5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool API_GlobalKeyboardEvent(int keyevent, int vkcode, SpecialKeyState state)
|
private bool API_GlobalKeyboardEvent(int keyevent, int vkcode, SpecialKeyState state)
|
||||||
{
|
{
|
||||||
if (!Context.CurrentPluginMetadata.Disabled && _settings.ReplaceWinR)
|
if (!Context.CurrentPluginMetadata.Disabled && _settings.ReplaceWinR)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue