fix: trying to fix white background when update Sensors widget (#492)

This commit is contained in:
Serhiy Mytrovtsiy
2021-05-31 21:50:01 +02:00
parent 79f33bc04d
commit a21f45ab10

View File

@@ -48,7 +48,7 @@ public class SensorsWidget: WidgetWrapper {
height: Constants.Widget.height - (2*Constants.Widget.margin.y)
))
self.canDrawConcurrently = true
self.wantsLayer = true
if !preview {
self.modeState = Store.shared.string(key: "\(self.title)_\(self.type.rawValue)_mode", defaultValue: self.modeState)