mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
👌 Improve first launch onboarding experience
This commit is contained in:
@ -110,9 +110,9 @@ extension MainMenu {
|
|||||||
Task { @MainActor in
|
Task { @MainActor in
|
||||||
OnboardingWindowController.show()
|
OnboardingWindowController.show()
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
await AppUpdater().checkForUpdates(interactive: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
await AppUpdater().checkForUpdates(interactive: false)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the linked version has changed between launches of phpmon
|
// Check if the linked version has changed between launches of phpmon
|
||||||
|
@ -42,4 +42,13 @@ class OnboardingWindowController: PMWindowController {
|
|||||||
|
|
||||||
NSApp.activate(ignoringOtherApps: true)
|
NSApp.activate(ignoringOtherApps: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func close() {
|
||||||
|
super.close()
|
||||||
|
|
||||||
|
// Search for updates after closing the window
|
||||||
|
if Stats.successfulLaunchCount == 1 {
|
||||||
|
Task { await AppUpdater().checkForUpdates(interactive: false) }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user