mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-08 04:20:07 +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,
|
Valet.Configuration.self,
|
||||||
from: try! String(contentsOf: file, encoding: .utf8).data(using: .utf8)!
|
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() {
|
public func reloadSites() {
|
||||||
|
@ -71,8 +71,7 @@ class SiteListVC: NSViewController, NSTableViewDelegate, NSTableViewDataSource {
|
|||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
tableView.doubleAction = #selector(self.doubleClicked(sender:))
|
tableView.doubleAction = #selector(self.doubleClicked(sender:))
|
||||||
sites = Valet.shared.sites
|
reloadSites()
|
||||||
setUINotBusy()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Async Operations
|
// MARK: - Async Operations
|
||||||
|
Reference in New Issue
Block a user