Skip to content

Commit 03ece1b

Browse files
committed
click
1 parent 1b2d076 commit 03ece1b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/DreamScene2/MainForm.Designer.cs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/DreamScene2/MainForm.cs

+6-3
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,13 @@ private void btnClose_Click(object sender, EventArgs e)
362362
CloseWindow(WindowType.None);
363363
}
364364

365-
private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
365+
private void notifyIcon1_MouseClick(object sender, MouseEventArgs e)
366366
{
367-
this.Show();
368-
this.Activate();
367+
if (e.Button == MouseButtons.Left)
368+
{
369+
this.Show();
370+
this.Activate();
371+
}
369372
}
370373

371374
void array_push(int[] arr, int val)

0 commit comments

Comments
 (0)