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 1f556e92..c50e531b 100644 --- a/STranslate/MainWindow.xaml.cs +++ b/STranslate/MainWindow.xaml.cs @@ -33,8 +33,10 @@ public MainWindow() 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 @@ private void Exit_Click(object sender, EventArgs e) } 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 a64f3c1d..3593a6ec 100644 --- a/STranslate/Properties/AssemblyInfo.cs +++ b/STranslate/Properties/AssemblyInfo.cs @@ -47,6 +47,6 @@ //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: // [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