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:
parent
94678506bd
commit
bfaba32d79
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue