From f20ced15a78fb3f8928219f860b06a744a09b043 Mon Sep 17 00:00:00 2001 From: RKrom Date: Fri, 18 Jan 2013 10:41:54 +0000 Subject: [PATCH] Added the possibility to configure the single & double-click action of the NotifyIcon. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2433 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/CoreConfiguration.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/GreenshotPlugin/Core/CoreConfiguration.cs b/GreenshotPlugin/Core/CoreConfiguration.cs index 40c232279..b0f54957f 100644 --- a/GreenshotPlugin/Core/CoreConfiguration.cs +++ b/GreenshotPlugin/Core/CoreConfiguration.cs @@ -43,7 +43,7 @@ namespace GreenshotPlugin.Core { RELEASE } - public enum LeftClickActions { + public enum ClickActions { NOTHING, OPEN_LAST_IN_EXPLORER, OPEN_LAST_IN_EDITOR, @@ -213,8 +213,11 @@ namespace GreenshotPlugin.Core { [IniProperty("WindowCornerCutShape", Description = "The cutshape which is used to remove the window corners, is mirrorred for all corners", DefaultValue = "5,3,2,1,1")] public List WindowCornerCutShape; - [IniProperty("LeftClickAction", Description = "Specify what action is made if the tray icon is left clicked", DefaultValue = "CONTEXT_MENU")] - public LeftClickActions LeftClickAction; + [IniProperty("LeftClickAction", Description = "Specify what action is made if the tray icon is left clicked, if a double-click action is specified this action is initiated after a delay (configurable via the windows double-click speed)", DefaultValue = "CONTEXT_MENU")] + public ClickActions LeftClickAction; + + [IniProperty("DoubleClickAction", Description = "Specify what action is made if the tray icon is double clicked", DefaultValue = "OPEN_LAST_IN_EXPLORER")] + public ClickActions DoubleClickAction; [IniProperty("ZoomerEnabled", Description = "Sets if the zoomer is enabled", DefaultValue = "True")] public bool ZoomerEnabled;