mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
#4769 "Display notifications" not staying checked
This commit is contained in:
@@ -42,6 +42,8 @@
|
||||
<true/>
|
||||
<key>DisplayGroupRowRatio</key>
|
||||
<false/>
|
||||
<key>DisplayNotifications</key>
|
||||
<true/>
|
||||
<key>DisplayPeerProgressBarNumber</key>
|
||||
<false/>
|
||||
<key>DisplayProgressBarAvailable</key>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user