Skip to content

Commit 9df31c8

Browse files
authored
Merge pull request #100 from shelbyKiraM/master
Uh, merging upstream is hard but DoubleClick should open settings
2 parents f1918a5 + ef7edf5 commit 9df31c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

AssistantComputerControl/SysTrayIcon.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public void InitializeComponent() {
3535
trayMenu.MenuItems.Add(Translator.__("help_title", "tray_menu"), new EventHandler(TrayOpenHelp));
3636
trayMenu.MenuItems.Add(Translator.__("exit_title", "tray_menu"), new EventHandler(TrayExit));
3737
TrayIcon.ContextMenu = trayMenu;
38+
39+
TrayIcon.DoubleClick += new System.EventHandler(this.TrayShowSettings);
3840
}
3941
public void HideIcon() {
4042
TrayIcon.Visible = false;
@@ -46,6 +48,9 @@ private void TrayExit(object sender, EventArgs e) {
4648
private void TrayOpenHelp(object sender, EventArgs e) {
4749
Process.Start("https://assistantcomputercontrol.com/#get-in-touch");
4850
}
51+
private void TrayShowSettings(object sender, EventArgs e) {
52+
MainProgram.ShowSettings();
53+
}
4954

5055
private static void TrayCreateStartupLink(object sender, EventArgs e) {
5156
DialogResult dialogResult = MessageBox.Show(Translator.__("start_with_pc_desc", "general"), MainProgram.messageBoxTitle, MessageBoxButtons.YesNo);

0 commit comments

Comments
 (0)