Skip to content

Commit dad5f5a

Browse files
committed
Fix redundant boolean cast and ensure consistent default value handling
1 parent 163af5c commit dad5f5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugins/Flow.Launcher.Plugin.Shell/ShellSetting.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private void CMDSetting_OnLoaded(object sender, RoutedEventArgs re)
3030

3131
ShowOnlyMostUsedCMDs.IsChecked = _settings.ShowOnlyMostUsedCMDs;
3232

33-
if ((bool)!ShowOnlyMostUsedCMDs.IsChecked)
33+
if (ShowOnlyMostUsedCMDs.IsChecked != true)
3434
ShowOnlyMostUsedCMDsNumber.IsEnabled = false;
3535

3636
ShowOnlyMostUsedCMDsNumber.ItemsSource = new List<int>() { 5, 10, 20 };

0 commit comments

Comments
 (0)