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

👌 Cleanup

This commit is contained in:
2022-03-29 17:25:47 +02:00
parent 9bc117e9f5
commit 347d79c88d

View File

@ -71,6 +71,7 @@ class SiteListPhpCell: NSTableCellView, SiteListCellProtocol
mapIndex += 1 mapIndex += 1
} }
// Site is not isolated, show options to switch global PHP version
alert.beginSheetModal(for: App.shared.siteListWindowController!.window!) { response in alert.beginSheetModal(for: App.shared.siteListWindowController!.window!) { response in
if response.rawValue > NSApplication.ModalResponse.alertFirstButtonReturn.rawValue { if response.rawValue > NSApplication.ModalResponse.alertFirstButtonReturn.rawValue {
if map.keys.contains(response.rawValue) { if map.keys.contains(response.rawValue) {
@ -81,9 +82,8 @@ class SiteListPhpCell: NSTableCellView, SiteListCellProtocol
} }
} }
} else { } else {
alert.beginSheetModal(for: App.shared.siteListWindowController!.window!) { response in // Site is isolated, do not show any options to switch
// alert.beginSheetModal(for: App.shared.siteListWindowController!.window!)
}
} }
} }