mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed showing the default value of update interval for all modules even after the change (#1942)
This commit is contained in:
@@ -76,13 +76,13 @@ internal class Settings: NSStackView, Settings_v {
|
||||
self.addArrangedSubview(PreferencesSection([
|
||||
PreferencesRow(localizedString("Update interval"), component: selectView(
|
||||
action: #selector(self.changeUpdateInterval),
|
||||
items: ReaderUpdateIntervals.map{ KeyValue_t(key: "\($0)", value: "\($0) sec") },
|
||||
selected: "\(self.updateIntervalValue) sec"
|
||||
items: ReaderUpdateIntervals,
|
||||
selected: "\(self.updateIntervalValue)"
|
||||
)),
|
||||
PreferencesRow(localizedString("Update interval for top processes"), component: selectView(
|
||||
action: #selector(self.changeUpdateTopInterval),
|
||||
items: ReaderUpdateIntervals.map{ KeyValue_t(key: "\($0)", value: "\($0) sec") },
|
||||
selected: "\(self.updateTopIntervalValue) sec"
|
||||
items: ReaderUpdateIntervals,
|
||||
selected: "\(self.updateTopIntervalValue)"
|
||||
))
|
||||
]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user