File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -325,12 +325,14 @@ private extension AppDelegate {
325325 private func setupLoginMenuItem( ) {
326326 do {
327327 let email = try Keychain . shared. getValue ( for: . appleIDEmail)
328+ logInMenuItem. isHidden = false
328329 logInMenuItem. title = " Log out ( \( email) ) "
329330 logInMenuItem. action = #selector( logoutFromAppleID)
330331 } catch {
331332 print ( " Error getting stored AppleID credentials: \( error) " )
332- logInMenuItem. title = " Save New Apple ID to Keychain... "
333- logInMenuItem. action = #selector( loginToAppleID)
333+ logInMenuItem. isHidden = true
334+ //logInMenuItem.title = "Save Apple ID to Keychain..."
335+ //logInMenuItem.action = #selector(loginToAppleID)
334336 }
335337 }
336338
@@ -376,7 +378,9 @@ extension AppDelegate: NSMenuDelegate
376378 func menuWillOpen( _ menu: NSMenu )
377379 {
378380 guard menu == self . appMenu else { return }
379-
381+
382+ setupLoginMenuItem ( )
383+
380384 // Clear any cached _jitAppListMenuControllers.
381385 self . _jitAppListMenuControllers. removeAll ( )
382386
You can’t perform that action at this time.
0 commit comments