fix: fixed showing the default value of update interval for all modules even after the change (#1942)

This commit is contained in:
Serhiy Mytrovtsiy
2024-05-12 11:27:12 +02:00
parent d055ded9c7
commit 74da91ff59
7 changed files with 24 additions and 18 deletions

View File

@@ -47,8 +47,8 @@ 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)"
))
]))