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,10 +110,10 @@ extension MainMenu {
|
||||
Task { @MainActor in
|
||||
OnboardingWindowController.show()
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
await AppUpdater().checkForUpdates(interactive: false)
|
||||
}
|
||||
}
|
||||
|
||||
// Check if the linked version has changed between launches of phpmon
|
||||
Stats.evaluateLastLinkedPhpVersion()
|
||||
|
@ -42,4 +42,13 @@ class OnboardingWindowController: PMWindowController {
|
||||
|
||||
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