1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 06:00:41 +00:00

#4769 "Display notifications" not staying checked

This commit is contained in:
Mitchell Livingston 2012-02-14 03:37:39 +00:00
parent 94678506bd
commit bfaba32d79
2 changed files with 9 additions and 2 deletions

View file

@ -42,6 +42,8 @@
<true/>
<key>DisplayGroupRowRatio</key>
<false/>
<key>DisplayNotifications</key>
<true/>
<key>DisplayPeerProgressBarNumber</key>
<false/>
<key>DisplayProgressBarAvailable</key>

View file

@ -138,6 +138,9 @@ tr_session * fHandle;
[fDefaults removeObjectForKey: @"CheckForUpdates"];
}
//set built-in Growl
[GrowlApplicationBridge setShouldUseBuiltInNotifications: [fDefaults boolForKey: @"DisplayNotifications"]];
[self setAutoUpdateToBeta: nil];
}
@ -177,7 +180,7 @@ tr_session * fHandle;
[self setPrefView: nil];
[fBuiltInGrowlButton setState: [GrowlApplicationBridge shouldUseBuiltInNotifications]];
[fBuiltInGrowlButton setState: [fDefaults boolForKey: @"DisplayNotifications"]];
const BOOL growlRunning = [GrowlApplicationBridge isGrowlRunning];
[fBuiltInGrowlButton setHidden: growlRunning];
[fGrowlInstalledField setHidden: !growlRunning];
@ -732,7 +735,9 @@ tr_session * fHandle;
- (IBAction) setBuiltInGrowlEnabled: (id) sender
{
[GrowlApplicationBridge setShouldUseBuiltInNotifications: [sender state] == NSOnState];
const BOOL enable = [sender state] == NSOnState;
[fDefaults setBool: enable forKey: @"DisplayNotifications"];
[GrowlApplicationBridge setShouldUseBuiltInNotifications: enable];
}
- (void) resetWarnings: (id) sender