mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
I can't fix it
This commit is contained in:
parent
74b9d2afad
commit
44569d36b5
5 changed files with 162 additions and 20 deletions
|
|
@ -1586,11 +1586,10 @@ struct StatsSettings: View {
|
|||
Section {
|
||||
Defaults.Toggle("Enable system stats monitoring", key: .enableStatsFeature)
|
||||
.onChange(of: enableStatsFeature) { _, newValue in
|
||||
if newValue {
|
||||
statsManager.startMonitoring()
|
||||
} else {
|
||||
if !newValue {
|
||||
statsManager.stopMonitoring()
|
||||
}
|
||||
// Note: Smart monitoring will handle starting when switching to stats tab
|
||||
}
|
||||
|
||||
if enableStatsFeature {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue