diff --git a/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.h b/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.h index ee68dd5..7cea4f2 100644 --- a/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.h +++ b/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.h @@ -56,12 +56,13 @@ typedef enum { @property (nonatomic, retain) IBOutlet WebView *aboutWebView; @property (nonatomic, retain) IBOutlet NSTextFieldCell *staticResolversTextField; @property (nonatomic, retain) IBOutlet NSButton *parentalControlsButton; -@property (nonatomic, retain) IBOutlet NSButtonCell *queryLoggingButton; @property (nonatomic, retain) IBOutlet NSButton *lockinButton; @property (nonatomic, retain) IBOutlet NSTextField *blacklistIPsTextField; @property (nonatomic, retain) IBOutlet NSTextField *blacklistDomainsTextField; @property (nonatomic, retain) IBOutlet NSTextField *exceptionsTextField; @property (nonatomic, retain) IBOutlet WebView *helpWebView; +@property (nonatomic, retain) IBOutlet NSButton *viewLogButton; +@property (nonatomic, retain) IBOutlet NSButton *queryLoggingButton; - (void) mainViewDidLoad; diff --git a/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.m b/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.m index 20bf24c..dfef53e 100644 --- a/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.m +++ b/DNSCrypt-Preference-Pane/DNSCrypt/DNSCrypt.m @@ -18,11 +18,12 @@ @synthesize aboutWebView = _aboutWebView; @synthesize staticResolversTextField = _staticResolversTextField; @synthesize parentalControlsButton = _parentalControlsButton; -@synthesize queryLoggingButton = _queryLoggingButton; @synthesize lockinButton = _lockinButton; @synthesize blacklistIPsTextField = _blacklistIPsTextField; @synthesize blacklistDomainsTextField = _blacklistDomainsTextField; @synthesize helpWebView = _helpWebView; +@synthesize viewLogButton = _viewLogButton; +@synthesize queryLoggingButton = _queryLoggingButton; @synthesize exceptionsTextField = _exceptionsTextField; @synthesize dnscryptButton = _dnscryptButton; @synthesize opendnsButton = _opendnsButton; @@ -533,8 +534,11 @@ DNSConfigurationState currentState = kDNS_CONFIGURATION_UNKNOWN; [_helpWebView setAlphaValue: 0.0]; [_helpWebView.animator setAlphaValue: 1.0]; [_helpWebView setDrawsBackground: TRUE]; + [_viewLogButton setHidden: YES]; + [_queryLoggingButton setHidden: YES]; } else { [_helpWebView setHidden: YES]; + [_queryLoggingButton setHidden: NO]; } } diff --git a/DNSCrypt-Preference-Pane/DNSCrypt/en.lproj/DNSCrypt.xib b/DNSCrypt-Preference-Pane/DNSCrypt/en.lproj/DNSCrypt.xib index 4f19f49..4d2d0c7 100644 --- a/DNSCrypt-Preference-Pane/DNSCrypt/en.lproj/DNSCrypt.xib +++ b/DNSCrypt-Preference-Pane/DNSCrypt/en.lproj/DNSCrypt.xib @@ -1288,14 +1288,6 @@ aW91cy5leGFtcGxlLm5ldA 433 - - - queryLoggingButton - - - - 437 - viewLogButtonPushed: @@ -1376,6 +1368,22 @@ aW91cy5leGFtcGxlLm5ldA 453 + + + viewLogButton + + + + 457 + + + + queryLoggingButton + + + + 458 + @@ -2042,7 +2050,7 @@ aW91cy5leGFtcGxlLm5ldA - 453 + 458 @@ -2144,13 +2152,14 @@ aW91cy5leGFtcGxlLm5ldA NSButton NSButton WebView - NSButtonCell + NSButton NSTabViewItem WebView NSTextFieldCell NSImageView NSTextField NSTabView + NSButton @@ -2215,7 +2224,7 @@ aW91cy5leGFtcGxlLm5ldA queryLoggingButton - NSButtonCell + NSButton releaseNotesTabViewItem @@ -2241,6 +2250,10 @@ aW91cy5leGFtcGxlLm5ldA tabView NSTabView + + viewLogButton + NSButton + IBProjectSource