This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user