mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
- improve performance when changing the widget
- move trigger process.read when changing the number of top processes to the background
This commit is contained in:
@@ -91,7 +91,9 @@ public class Network: Module {
|
||||
|
||||
self.settingsView.callbackWhenUpdateNumberOfProcesses = {
|
||||
self.popupView.numberOfProcessesUpdated()
|
||||
self.processReader?.read()
|
||||
DispatchQueue.global(qos: .background).async {
|
||||
self.processReader?.read()
|
||||
}
|
||||
}
|
||||
|
||||
self.usageReader?.readyCallback = { [unowned self] in
|
||||
|
||||
Reference in New Issue
Block a user