This commit is contained in:
@@ -22,8 +22,22 @@ namespace PamhagenSysCtrl.Windows {
|
||||
}
|
||||
|
||||
private void Menu_Settings_ManualControl_Click(object sender, RoutedEventArgs evt) {
|
||||
var w = new ManualControlWindow();
|
||||
w.Show();
|
||||
if (Menu_Settings_ManualControl.IsChecked) {
|
||||
foreach (var win in Application.Current.Windows) {
|
||||
if (win is ManualControlWindow w) {
|
||||
w.Focus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
var ctrl = new ManualControlWindow();
|
||||
ctrl.Show();
|
||||
} else {
|
||||
foreach (var win in Application.Current.Windows) {
|
||||
if (win is ManualControlWindow w) {
|
||||
w.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Menu_Settings_OverridePathClearances_Click(object sender, RoutedEventArgs evt) {
|
||||
|
||||
Reference in New Issue
Block a user