Skip to content

Commit

Permalink
Fixed login menu button
Browse files Browse the repository at this point in the history
  • Loading branch information
lonkelle committed Mar 28, 2023
1 parent 487d907 commit 3497633
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
5 changes: 4 additions & 1 deletion AltServer/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,15 @@ private extension AppDelegate

private extension AppDelegate {
private func setupLoginMenuItem() {
logInMenuItem.isEnabled = true
do {
let email = try Keychain.shared.getValue(for: .appleIDEmail)
logInMenuItem.isHidden = false
//logInMenuItem.isHidden = false
logInMenuItem.title = "Log out (\(email))"
logInMenuItem.action = #selector(logoutFromAppleID)
} catch {
//logInMenuItem.isHidden = false
logInMenuItem.action = #selector(loginToAppleID)
print("Error getting stored AppleID credentials: \(error)")
}
}
Expand Down
2 changes: 1 addition & 1 deletion AltServer/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<menuItem title="Launch at Login" id="IyR-FQ-upe" userLabel="Launch At Login">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem title="Log in" id="k7w-cA-c4B">
<menuItem title="Apple ID Login..." id="k7w-cA-c4B">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="mhj-D5-Ycy"/>
Expand Down
16 changes: 16 additions & 0 deletions sparkle-macos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
<description>Most recent changes with links to updates.</description>
<language>en</language>

<item>
<title>Version 1.0.6</title>
<description><![CDATA[
This update fixes the following issues:
<ul>
<li>Added a manual "Check for update..." menu bar item for users to check themselves if there is a new update</li>
<li>Fixed "updating SideServer" bug. Now checks if it can be updated properly</li>
<li>Notarized app</li>
</ul>
]]>
</description>
<pubDate>Thu, 27 Mar 2023 12:10:00 -0005</pubDate>
<enclosure url="https://github.com/SideStore/SideServer-macOS/releases/download/v1.0.6/SideServer.dmg" sparkle:version="106" sparkle:shortVersionString="1.0.6" length="9862026" type="application/octet-stream"/>
<sparkle:minimumSystemVersion>10.14.4</sparkle:minimumSystemVersion>
</item>

<item>
<title>Version 1.0.5</title>
<description><![CDATA[
Expand Down

0 comments on commit 3497633

Please sign in to comment.