Skip to content

Commit

Permalink
perf: update at first open
Browse files Browse the repository at this point in the history
  • Loading branch information
ZGGSONG committed Dec 28, 2022
1 parent 4920090 commit d3d39d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions STranslate/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion STranslate/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

0 comments on commit d3d39d3

Please sign in to comment.