File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Plugins/Flow.Launcher.Plugin.Shell Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -384,9 +384,15 @@ public void Init(PluginInitContext context)
384384 Context = context ;
385385 _settings = context . API . LoadSettingJsonStorage < Settings > ( ) ;
386386 context . API . RegisterGlobalKeyboardCallback ( API_GlobalKeyboardEvent ) ;
387+ // Since the old Settings class set default value of ShowOnlyMostUsedCMDsNumber to 0 which is a wrong value,
388+ // we need to fix it here to make sure the default value is 5
389+ if ( _settings . ShowOnlyMostUsedCMDsNumber == 0 )
390+ {
391+ _settings . ShowOnlyMostUsedCMDsNumber = 5 ;
392+ }
387393 }
388394
389- bool API_GlobalKeyboardEvent ( int keyevent , int vkcode , SpecialKeyState state )
395+ private bool API_GlobalKeyboardEvent ( int keyevent , int vkcode , SpecialKeyState state )
390396 {
391397 if ( ! Context . CurrentPluginMetadata . Disabled && _settings . ReplaceWinR )
392398 {
You can’t perform that action at this time.
0 commit comments