mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added an option to set ICMP host for the connectivity reader. The empty host will disable this feature
This commit is contained in:
@@ -161,6 +161,12 @@ public class Network: Module {
|
||||
self.settingsView.usageResetCallback = { [unowned self] in
|
||||
self.setUsageReset()
|
||||
}
|
||||
self.settingsView.ICMPHostCallback = { [unowned self] isDisabled in
|
||||
if isDisabled {
|
||||
self.popupView.resetConnectivityView()
|
||||
self.connectivityCallback(false)
|
||||
}
|
||||
}
|
||||
|
||||
if let reader = self.usageReader {
|
||||
self.addReader(reader)
|
||||
|
||||
Reference in New Issue
Block a user