Skip to content

Commit b8e8a8d

Browse files
♻️ Load additional preferences after valid boot
1 parent 1994e1f commit b8e8a8d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

phpmon/Domain/Menu/MainMenu+Startup.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ extension MainMenu {
3030
When the environment is all clear and the app can run, let's go.
3131
*/
3232
private func onEnvironmentPass() async {
33+
// Load additional preferences
34+
await container.preferences.loadCustomPreferences()
35+
3336
// Determine what the `php` formula is aliased to
3437
await container.phpEnvs.determinePhpAlias()
3538

phpmon/Domain/Preferences/Preferences.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class Preferences {
2929
if isRunningSwiftUIPreview {
3030
return
3131
}
32-
33-
Task { await loadCustomPreferences() }
3432
}
3533

3634
// MARK: - First Time Run

0 commit comments

Comments
 (0)