From 94c67089e7b1e68b86871827d0e469364726e083 Mon Sep 17 00:00:00 2001 From: "DESKTOP-3BO4HSG\\ksat" Date: Mon, 2 Jan 2023 13:56:32 +0800 Subject: [PATCH] perf: update notifyicon --- STranslate/MainWindow.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/STranslate/MainWindow.xaml.cs b/STranslate/MainWindow.xaml.cs index f6c361d..d11a7af 100644 --- a/STranslate/MainWindow.xaml.cs +++ b/STranslate/MainWindow.xaml.cs @@ -32,7 +32,10 @@ namespace STranslate private void InitialTray() { - notifyIcon.Text = "STranslate"; + var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); + notifyIcon.Text = $"STranslate_{version}\n" + + $"划词翻译快捷键: ALT + D\n" + + $"输入翻译快捷键: ALT + A\n"; //notifyIcon.BalloonTipText = "STranslate 已启动"; notifyIcon.Icon = new System.Drawing.Icon(Application.GetResourceStream(new Uri("Images/translate.ico", UriKind.Relative)).Stream); notifyIcon.Visible = true;