Skip to content

Commit 3623316

Browse files
committed
Disable conflicting options
Signed-off-by: Florian Grabmeier <[email protected]>
1 parent 276c6ed commit 3623316

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,27 @@ private void CMDSetting_OnLoaded(object sender, RoutedEventArgs re)
4343
CloseShellAfterPress.Checked += (o, e) =>
4444
{
4545
_settings.CloseShellAfterPress = true;
46+
LeaveShellOpen.IsChecked = false;
47+
LeaveShellOpen.IsEnabled = false;
4648
};
4749

4850
CloseShellAfterPress.Unchecked += (o, e) =>
4951
{
5052
_settings.CloseShellAfterPress = false;
53+
LeaveShellOpen.IsEnabled = true;
5154
};
5255

5356
LeaveShellOpen.Checked += (o, e) =>
5457
{
5558
_settings.LeaveShellOpen = true;
59+
CloseShellAfterPress.IsChecked = false;
60+
CloseShellAfterPress.IsEnabled = false;
5661
};
5762

5863
LeaveShellOpen.Unchecked += (o, e) =>
5964
{
6065
_settings.LeaveShellOpen = false;
66+
CloseShellAfterPress.IsEnabled = true;
6167
};
6268

6369
AlwaysRunAsAdministrator.Checked += (o, e) =>

0 commit comments

Comments
 (0)