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:
@ -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() {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user