adium 4833:a81b12b803bb: Patch from rafaelglauber allowing a set...

commits at adium.im commits at adium.im
Mon May 21 19:44:32 UTC 2012


details:	http://hg.adium.im/adium/rev/a81b12b803bb
revision:	4833:a81b12b803bb
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Mon May 21 21:42:19 2012 +0200

Patch from rafaelglauber allowing a set hotkey to hide Adium again when pressed when Adium is already active, slightly modified by me.

Fixes #4859

diffs (24 lines):

diff -r 24a111d0ddb1 -r a81b12b803bb Plugins/General Preferences/ESGeneralPreferencesPlugin.m
--- a/Plugins/General Preferences/ESGeneralPreferencesPlugin.m	Wed May 16 11:50:23 2012 +0200
+++ b/Plugins/General Preferences/ESGeneralPreferencesPlugin.m	Mon May 21 21:42:19 2012 +0200
@@ -78,13 +78,14 @@
 {
 	if (![NSApp isActive]) {
 		[NSApp activateIgnoringOtherApps:YES];
-	}
+        //Switch to the appropriate window, just like clicking the dock; this method will handle switching to a chat with unviewed content, for example.
+        [adium.interfaceController handleReopenWithVisibleWindows:NO];
 
-	//Switch to the appropriate window, just like clicking the dock; this method will handle switching to a chat with unviewed content, for example.
-	[adium.interfaceController handleReopenWithVisibleWindows:NO];
-	
-	//Now ensure that all Adium windows are visible
-	[NSApp unhide:nil];
+        //Now ensure that all Adium windows are visible
+        [NSApp unhide:nil];
+	} else {
+        [NSApp hide:self];
+    }
 }
 
 - (void)preferencesChangedForGroup:(NSString *)group key:(NSString *)key object:(AIListObject *)object




More information about the commits mailing list