Changeset 13225


Ignore:
Timestamp:
Feb 14, 2012, 3:37:39 AM (7 years ago)
Author:
livings124
Message:

#4769 "Display notifications" not staying checked

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Defaults.plist

    r12179 r13225  
    4343        <key>DisplayGroupRowRatio</key>
    4444        <false/>
     45        <key>DisplayNotifications</key>
     46        <true/>
    4547        <key>DisplayPeerProgressBarNumber</key>
    4648        <false/>
  • trunk/macosx/PrefsController.m

    r13162 r13225  
    139139        }
    140140       
     141        //set built-in Growl
     142        [GrowlApplicationBridge setShouldUseBuiltInNotifications: [fDefaults boolForKey: @"DisplayNotifications"]];
     143       
    141144        [self setAutoUpdateToBeta: nil];
    142145    }
     
    178181    [self setPrefView: nil];
    179182   
    180     [fBuiltInGrowlButton setState: [GrowlApplicationBridge shouldUseBuiltInNotifications]];
     183    [fBuiltInGrowlButton setState: [fDefaults boolForKey: @"DisplayNotifications"]];
    181184    const BOOL growlRunning = [GrowlApplicationBridge isGrowlRunning];
    182185    [fBuiltInGrowlButton setHidden: growlRunning];
     
    733736- (IBAction) setBuiltInGrowlEnabled: (id) sender
    734737{
    735     [GrowlApplicationBridge setShouldUseBuiltInNotifications: [sender state] == NSOnState];
     738    const BOOL enable = [sender state] == NSOnState;
     739    [fDefaults setBool: enable forKey: @"DisplayNotifications"];
     740    [GrowlApplicationBridge setShouldUseBuiltInNotifications: enable];
    736741}
    737742
Note: See TracChangeset for help on using the changeset viewer.