mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: added missing handler when changing disk reader interval
This commit is contained in:
@@ -164,6 +164,9 @@ public class Disk: Module {
|
||||
self.settingsView.callback = { [unowned self] in
|
||||
self.capacityReader?.read()
|
||||
}
|
||||
self.settingsView.setInterval = { [unowned self] value in
|
||||
self.capacityReader?.setInterval(value)
|
||||
}
|
||||
|
||||
if let reader = self.capacityReader {
|
||||
self.addReader(reader)
|
||||
|
||||
Reference in New Issue
Block a user