fix: enable Sensors widget settings (don't know why it was disabled)

This commit is contained in:
Serhiy Mytrovtsiy
2021-07-15 19:05:34 +02:00
parent 606f2d5a99
commit 39dcb7bc8a

View File

@@ -185,20 +185,20 @@ public class SensorsWidget: WidgetWrapper {
public override func settings(width: CGFloat) -> NSView {
let view = SettingsContainerView(width: width)
// view.addArrangedSubview(selectRow(
// frame: NSRect(x: 0, y: 0, width: view.frame.width, height: Constants.Settings.row),
// title: localizedString("Display mode"),
// action: #selector(changeMode),
// items: SensorsWidgetMode,
// selected: self.modeState
// ))
//
// view.addArrangedSubview(toggleTitleRow(
// frame: NSRect(x: 0, y: 0, width: view.frame.width, height: Constants.Settings.row),
// title: localizedString("Static width"),
// action: #selector(toggleSize),
// state: self.fixedSizeState
// ))
view.addArrangedSubview(selectRow(
frame: NSRect(x: 0, y: 0, width: view.frame.width, height: Constants.Settings.row),
title: localizedString("Display mode"),
action: #selector(changeMode),
items: SensorsWidgetMode,
selected: self.modeState
))
view.addArrangedSubview(toggleTitleRow(
frame: NSRect(x: 0, y: 0, width: view.frame.width, height: Constants.Settings.row),
title: localizedString("Static width"),
action: #selector(toggleSize),
state: self.fixedSizeState
))
return view
}