From d3d39d37d585ba95ec68c5d4189f61d29f5e9614 Mon Sep 17 00:00:00 2001 From: "DESKTOP-3BO4HSG\\ksat" Date: Wed, 28 Dec 2022 17:11:48 +0800 Subject: [PATCH] perf: update at first open --- STranslate/MainWindow.xaml.cs | 5 +++-- STranslate/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/STranslate/MainWindow.xaml.cs b/STranslate/MainWindow.xaml.cs index 1f556e9..c50e531 100644 --- a/STranslate/MainWindow.xaml.cs +++ b/STranslate/MainWindow.xaml.cs @@ -33,8 +33,10 @@ namespace STranslate private void InitialTray() { notifyIcon.Text = "STranslate"; + notifyIcon.BalloonTipText = "STranslate 已启动"; notifyIcon.Icon = new System.Drawing.Icon(Application.GetResourceStream(new Uri("Images/translate.ico", UriKind.Relative)).Stream); notifyIcon.Visible = true; + notifyIcon.ShowBalloonTip(1000); notifyIcon.MouseDoubleClick += NotifyIcon_MouseDoubleClick; @@ -282,8 +284,7 @@ namespace STranslate } private void InitView() { - this.Activate(); - this.TextBoxInput.Focus(); + this.Hide(); } private System.Windows.Forms.NotifyIcon notifyIcon = new System.Windows.Forms.NotifyIcon(); private bool _IsTopmost { get; set; } diff --git a/STranslate/Properties/AssemblyInfo.cs b/STranslate/Properties/AssemblyInfo.cs index a64f3c1..3593a6e 100644 --- a/STranslate/Properties/AssemblyInfo.cs +++ b/STranslate/Properties/AssemblyInfo.cs @@ -47,6 +47,6 @@ using System.Windows; //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.0.8.0")] +[assembly: AssemblyVersion("0.1.0.0")] [assembly: AssemblyFileVersion("0.1.0.0")] [assembly: Guid("CE252DD8-179F-4544-9989-453F5DEA378D")] \ No newline at end of file