Rework updating process a bit
Test / Run tests (push) Successful in 13s

This commit is contained in:
2026-08-12 15:01:59 +02:00
parent 4e82f164c9
commit 2dee3a9ae9
8 changed files with 72 additions and 96 deletions
@@ -42,6 +42,7 @@ namespace PamhagenSysCtrl.Windows {
public PlantSchemeWindow() {
InitializeComponent();
Menu_Help_CheckForUpdates.IsEnabled = App.Config.UpdateUrl != null;
Graph = new();
Graph.Draw(SchemeCanvas);
FastSelectPaths = new Dictionary<Button, (ISource, Pump, ISink)> {
@@ -118,9 +119,7 @@ namespace PamhagenSysCtrl.Windows {
}
private async void Menu_Help_CheckForUpdates_Click(object sender, RoutedEventArgs evt) {
if (Application.Current is App app) {
await app.CheckForUpdates(true);
}
await App.CheckForUpdates(true);
}
private void Menu_Help_About_Click(object sender, RoutedEventArgs evt) {