feat: Add "Check for Updates" menu item

This commit is contained in:
Stone_Red
2026-02-23 17:20:38 +01:00
parent 81b09b1af7
commit 0e3dd932af
4 changed files with 38 additions and 2 deletions
+7 -1
View File
@@ -104,6 +104,11 @@ public sealed class MainWindow : Runnable
/// </summary>
public event Action<string>? OnThemeSelected;
/// <summary>
/// Fired when the user requests to check for updates.
/// </summary>
public event Action? OnCheckForUpdatesRequested;
/// <summary>
/// Fired when the user requests to view saved servers.
/// </summary>
@@ -322,7 +327,8 @@ public sealed class MainWindow : Runnable
[
new MenuBarItem("_File",
[
new MenuItem("_Quit", "Quit EchoHub", () => _app.RequestStop(), Key.Empty)
new MenuItem("_Quit", "Quit EchoHub", () => _app.RequestStop(), Key.Empty),
new MenuItem($"_Check for Updates", "Check for new version", () => OnCheckForUpdatesRequested?.Invoke(), Key.Empty)
]),
new MenuBarItem("_Server", new View[]
{