diff --git a/desktop/App.xaml.cs b/desktop/App.xaml.cs index 6ff9475..af9e888 100644 --- a/desktop/App.xaml.cs +++ b/desktop/App.xaml.cs @@ -69,7 +69,7 @@ public partial class App : Application // ③ 托盘 var version = GetType().Assembly.GetName().Version?.ToString() ?? "1.0.0"; - _tray = new TrayIconService(_server.BaseUrl, version); + _tray = new TrayIconService(version); _tray.ShowRequested += ShowAppWindow; _tray.RestartRequested += RestartApplication; _tray.ExitRequested += ExitApplication; @@ -316,7 +316,7 @@ public partial class App : Application _trayHintShown = true; _tray?.ShowBalloon("云仓视频溯源软件仍在运行", - $"本机服务在 {_server?.BaseUrl} 继续提供,双击托盘图标可重新打开窗口。"); + "本机服务继续在后台运行,双击托盘图标可重新打开窗口。"); } /// @@ -382,7 +382,7 @@ public partial class App : Application private void UpdateTrayStatus() { - _tray?.UpdateStatus(_server?.IsRunning == true ? $"运行中 · {_server.BaseUrl}" : "本机服务未启动"); + _tray?.UpdateStatus(_server?.IsRunning == true ? "运行中" : "未启动"); } // ---------------- 单实例 / 退出 ---------------- diff --git a/desktop/MainWindow.xaml b/desktop/MainWindow.xaml index 18050d8..661d6da 100644 --- a/desktop/MainWindow.xaml +++ b/desktop/MainWindow.xaml @@ -45,21 +45,12 @@ - - - - -