fix: trying to fix the crash by fixing some data racing in the widgets (#1578)

This commit is contained in:
Serhiy Mytrovtsiy
2023-08-19 09:39:18 +02:00
parent c5a3657957
commit 5030d22ec5
15 changed files with 198 additions and 349 deletions

View File

@@ -233,7 +233,7 @@ public class StackWidget: WidgetWrapper {
view.addArrangedSubview(selectSettingsRow(
title: localizedString("Display mode"),
action: #selector(changeDisplayMode),
action: #selector(self.changeDisplayMode),
items: SensorsWidgetMode,
selected: self.modeState.rawValue
))
@@ -241,14 +241,14 @@ public class StackWidget: WidgetWrapper {
if self.title != "Clock" {
view.addArrangedSubview(toggleSettingRow(
title: localizedString("Static width"),
action: #selector(toggleSize),
action: #selector(self.toggleSize),
state: self.fixedSizeState
))
}
view.addArrangedSubview(toggleSettingRow(
title: localizedString("Monospaced font"),
action: #selector(toggleMonospacedFont),
action: #selector(self.toggleMonospacedFont),
state: self.monospacedFontState
))