Left click on notify icon in taskbar should open console, fixes #454. (Thanks Goodlyay)

This commit is contained in:
UnknownShadow200 2017-06-15 13:33:47 +10:00
parent e10576fad4
commit 54258aee95

View File

@ -82,9 +82,14 @@ namespace MCGalaxy.Gui {
void MakeNotifyIcon() {
UpdateNotifyIconText();
notifyIcon.ContextMenuStrip = this.icon_context;
notifyIcon.Icon = this.Icon;
notifyIcon.ContextMenuStrip = icon_context;
notifyIcon.Icon = Icon;
notifyIcon.Visible = true;
notifyIcon.MouseClick += notifyIcon_MouseClick;
}
void notifyIcon_MouseClick(object sender, MouseEventArgs e) {
if (e.Button == MouseButtons.Left) openConsole_Click(sender, e);
}
void InitServer() {