Skip to content

Commit

Permalink
Merge pull request #66 from yehwankim23/patch-1
Browse files Browse the repository at this point in the history
Open task manager on double-click
  • Loading branch information
Kyome22 committed Nov 29, 2021
2 parents 8fd7db5 + 986b701 commit c562abd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions RunCat/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ public RunCatApplicationContext()
Visible = true
};

notifyIcon.DoubleClick += new EventHandler(HandleDoubleClick);

UpdateThemeIcons();
SetAnimation();
CPUTick();
Expand Down Expand Up @@ -290,6 +292,11 @@ private void StartObserveCPU()
cpuTimer.Tick += new EventHandler(ObserveCPUTick);
cpuTimer.Start();
}

private void HandleDoubleClick(object Sender, EventArgs e)
{
System.Diagnostics.Process.Start("taskmgr.exe");
}

}
}

0 comments on commit c562abd

Please sign in to comment.