1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-08 04:20:07 +02:00

🔧 Disable valet switching for next release (#34)

This commit is contained in:
2021-12-17 13:11:22 +01:00
parent 5c391917d2
commit eaf653e3c0
2 changed files with 5 additions and 3 deletions

View File

@ -376,6 +376,7 @@ class MainMenu: NSObject, NSWindowDelegate, NSMenuDelegate {
}
}
/* DISABLED UNTIL VALET SWITCHING IS OK (see #34)
if Preferences.preferences[.useInternalSwitcher] as! Bool == false {
// 1. Default switcher using Valet
// Will cause less issues, but is slower
@ -384,7 +385,7 @@ class MainMenu: NSObject, NSWindowDelegate, NSMenuDelegate {
availableVersions: App.shared.availablePhpVersions,
completed: completion
)
} else {
} else { */
// 2. Custom switcher (internal)
// Will cause more issues with Homebrew and is faster
Actions.switchToPhpVersion(
@ -392,7 +393,7 @@ class MainMenu: NSObject, NSWindowDelegate, NSMenuDelegate {
availableVersions: App.shared.availablePhpVersions,
completed: completion
)
}
/* } */
}
}

View File

@ -74,13 +74,14 @@ class PrefsVC: NSViewController {
preference: .autoServiceRestartAfterExtensionToggle,
action: {}
),
/* DISABLED UNTIL VALET SWITCHING IS OK (see #34)
CheckboxPreferenceView.make(
sectionText: "",
descriptionText: "prefs.use_internal_switcher_desc".localized,
checkboxText: "prefs.use_internal_switcher".localized,
preference: .useInternalSwitcher,
action: {}
),
), */
HotkeyPreferenceView.make(
sectionText: "prefs.global_shortcut".localized,
descriptionText: "prefs.shortcut_desc".localized,