Update MainForm.cs

2dust 5 years ago
parent 1bd2944074
commit 6043d74bd0

@ -392,6 +392,8 @@ namespace v2rayN.Forms
} }
} }
} }
notifyMain.Icon = GetNotifyIcon();
} }
private void ssMain_ItemClicked(object sender, ToolStripItemClickedEventArgs e) private void ssMain_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{ {
@ -1019,7 +1021,7 @@ namespace v2rayN.Forms
{ {
//this.WindowState = FormWindowState.Minimized; //this.WindowState = FormWindowState.Minimized;
this.Hide(); this.Hide();
this.notifyMain.Icon = this.Icon; //this.notifyMain.Icon = this.Icon;
this.notifyMain.Visible = true; this.notifyMain.Visible = true;
this.ShowInTaskbar = false; this.ShowInTaskbar = false;

Loading…
Cancel
Save