Add auto updater

This commit is contained in:
2026-08-12 11:37:07 +02:00
committed by lorenz.stechauner
parent 9d4ae11de8
commit eb0ec60ed2
8 changed files with 249 additions and 0 deletions
@@ -50,6 +50,11 @@
<TextBlock FontFamily="Segoe MDL2 Assets" FontSize="16" Text="&#xE946;"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Nach Updates suchen..." Click="Menu_Help_CheckForUpdates_Click">
<MenuItem.Icon>
<TextBlock FontFamily="Segoe MDL2 Assets" FontSize="16" Text="&#xE895;"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
</Menu>
@@ -117,6 +117,12 @@ namespace PamhagenSysCtrl.Windows {
} catch { }
}
private async void Menu_Help_CheckForUpdates_Click(object sender, RoutedEventArgs evt) {
if (Application.Current is App app) {
await app.CheckForUpdates(true);
}
}
private void FastSelectButton_EntryTroughStart_Click(object sender, RoutedEventArgs evt) {
try {
App.Plant?.StartTroughAuger();