I can't fix it

This commit is contained in:
Hariharan Mudaliar 2025-10-02 21:02:52 +05:30
commit 44569d36b5
5 changed files with 162 additions and 20 deletions

View file

@ -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 {