mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 20:10:08 +02:00
👌 Cleanup
This commit is contained in:
@ -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!)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user