This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using PamhagenSysCtrl.Helpers;
|
||||
using PamhagenSysCtrl.Windows;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Media;
|
||||
@@ -47,6 +48,14 @@ namespace PamhagenSysCtrl {
|
||||
App.Plant?.Update += OnUpdate;
|
||||
}
|
||||
|
||||
private void OnClosed(object sender, EventArgs evt) {
|
||||
foreach (var win in Application.Current.Windows) {
|
||||
if (win is PlantSchemeWindow w) {
|
||||
w.Menu_Settings_ManualControl.IsChecked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void OnUpdate(object? sender, PlantEventArgs evt) {
|
||||
if (sender is not PamhagenPlant plant) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user