mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-04 08:36:11 +02:00
feat: Add "Check for Updates" menu item
This commit is contained in:
@@ -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[]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user