perf: update notifyicon

dev_config
DESKTOP-3BO4HSG\ksat 2 years ago
parent 4eaadff93b
commit 94c67089e7

@ -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;

Loading…
Cancel
Save