Checked ClickActions, added the Settings as possible value. Also made sure we log more information if the INI has wrong values.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2434 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-01-18 11:05:11 +00:00
commit 771fc93d6b
3 changed files with 14 additions and 7 deletions

View file

@ -1150,7 +1150,7 @@ namespace Greenshot {
return;
}
// The right button will automatically be handled with the context menu, here we only check the left.
if (conf.DoubleClickAction == ClickActions.NOTHING) {
if (conf.DoubleClickAction == ClickActions.DO_NOTHING) {
// As there isn't a double-click we can start the Left click
NotifyIconClick(conf.LeftClickAction);
// ready with the test
@ -1212,7 +1212,10 @@ namespace Greenshot {
CaptureHelper.CaptureFile(conf.OutputFileAsFullpath, DestinationHelper.GetDestination(EditorDestination.DESIGNATION));
}
break;
case ClickActions.CONTEXT_MENU:
case ClickActions.OPEN_SETTINGS:
ShowSetting();
break;
case ClickActions.SHOW_CONTEXT_MENU:
MethodInfo oMethodInfo = typeof(NotifyIcon).GetMethod("ShowContextMenu", BindingFlags.Instance | BindingFlags.NonPublic);
oMethodInfo.Invoke(notifyIcon, null);
break;