1
0
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:
2021-12-06 17:19:08 +01:00
parent e381880675
commit 92a6d506dc
10 changed files with 99 additions and 41 deletions

View File

@@ -44,6 +44,6 @@ class SiteListCell: NSTableCellView
: NSColor.red
// Show the current driver
labelDriver.stringValue = site.driver
labelDriver.stringValue = site.driver ?? "???"
}
}

View File

@@ -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

View File

@@ -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
}