mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-09 21:20:07 +01:00
♻️ Cleanup, updated target for tests
This commit is contained in:
@@ -44,6 +44,6 @@ class SiteListCell: NSTableCellView
|
||||
: NSColor.red
|
||||
|
||||
// Show the current driver
|
||||
labelDriver.stringValue = site.driver
|
||||
labelDriver.stringValue = site.driver ?? "???"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,8 +19,13 @@ class SiteListVC: NSViewController, NSTableViewDelegate, NSTableViewDataSource {
|
||||
|
||||
// MARK: - Variables
|
||||
|
||||
/// List of sites that will be displayed in this view. Originates from the `Valet` object.
|
||||
var sites: [Valet.Site] = []
|
||||
|
||||
/// Array that contains various editors that might open a particular site directory.
|
||||
var editorAvailability: [String] = []
|
||||
|
||||
/// String that was last searched for. Empty by default.
|
||||
var lastSearchedFor = ""
|
||||
|
||||
// MARK: - Helper Variables
|
||||
|
||||
@@ -36,7 +36,6 @@ class SiteListWC: PMWindowController, NSSearchFieldDelegate, NSToolbarDelegate {
|
||||
|
||||
func controlTextDidChange(_ notification: Notification) {
|
||||
guard let searchField = notification.object as? NSSearchField else {
|
||||
print("Unexpected control in update notification")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user