From 16f6c3c5931e528517197c3781bef8332bdcd140 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Thu, 16 Apr 2020 17:13:23 -0400 Subject: [PATCH] Update preference menu item state. --- platform-darwin/Source/Mac/Base.lproj/MainMenu.xib | 6 +++--- platform-darwin/Source/Mac/MPMacAppDelegate.m | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/platform-darwin/Source/Mac/Base.lproj/MainMenu.xib b/platform-darwin/Source/Mac/Base.lproj/MainMenu.xib index 6c644fdf..f5b3d1cc 100644 --- a/platform-darwin/Source/Mac/Base.lproj/MainMenu.xib +++ b/platform-darwin/Source/Mac/Base.lproj/MainMenu.xib @@ -66,7 +66,7 @@ - + @@ -83,7 +83,7 @@ - + @@ -210,7 +210,7 @@ - + diff --git a/platform-darwin/Source/Mac/MPMacAppDelegate.m b/platform-darwin/Source/Mac/MPMacAppDelegate.m index f56d5ea9..0f2251c5 100644 --- a/platform-darwin/Source/Mac/MPMacAppDelegate.m +++ b/platform-darwin/Source/Mac/MPMacAppDelegate.m @@ -723,10 +723,13 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven } BOOL loginItemEnabled = [self loginItemEnabled]; + self.initialWindowController.openAtLoginButton.state = loginItemEnabled? NSOnState: NSOffState; self.openAtLoginItem.state = loginItemEnabled? NSOnState: NSOffState; self.showFullScreenItem.state = [[MPMacConfig get].fullScreen boolValue]? NSOnState: NSOffState; - self.initialWindowController.openAtLoginButton.state = loginItemEnabled? NSOnState: NSOffState; - self.rememberPasswordItem.state = [[MPConfig get].rememberLogin boolValue]? NSOnState: NSOffState; + self.rememberPasswordItem.state = [[MPMacConfig get].rememberLogin boolValue]? NSOnState: NSOffState; + self.diagnosticsItem.state = [[MPMacConfig get].sendInfo boolValue]? NSOnState: NSOffState; + self.hidePasswordsItem.state = [[MPMacConfig get].hidePasswords boolValue]? NSOnState: NSOffState; + self.rememberPasswordItem.state = [[MPMacConfig get].rememberLogin boolValue]? NSOnState: NSOffState; self.savePasswordItem.state = activeUser.saveKey? NSOnState: NSOffState; if (!activeUser) {