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

️ Only load sites when view opens for the first time

This commit is contained in:
2021-12-07 20:04:19 +01:00
parent 327c88a745
commit f65fd513f2
2 changed files with 1 additions and 7 deletions

View File

@ -33,11 +33,6 @@ class Valet {
Valet.Configuration.self,
from: try! String(contentsOf: file, encoding: .utf8).data(using: .utf8)!
)
print("PHP Monitor should scan the following paths:")
print(config.paths)
resolvePaths(tld: config.tld)
}
public func reloadSites() {

View File

@ -71,8 +71,7 @@ class SiteListVC: NSViewController, NSTableViewDelegate, NSTableViewDataSource {
override func viewDidLoad() {
tableView.doubleAction = #selector(self.doubleClicked(sender:))
sites = Valet.shared.sites
setUINotBusy()
reloadSites()
}
// MARK: - Async Operations