adium/adium

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

Fixes #4859
--- 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