forked from M-Labs/thermostat
Arrange context menu items to be in order
This commit is contained in:
parent
e5b0583a91
commit
6c11a0536c
@ -98,16 +98,16 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
self.menu = QtWidgets.QMenu()
|
||||
self.menu.setTitle('Thermostat settings')
|
||||
|
||||
fan = QtWidgets.QWidgetAction(self.menu)
|
||||
fan.setDefaultWidget(self.fan_group)
|
||||
self.menu.addAction(fan)
|
||||
self.menu.fan = fan
|
||||
|
||||
port = QtWidgets.QWidgetAction(self.menu)
|
||||
port.setDefaultWidget(self.port_set_spin)
|
||||
self.menu.addAction(port)
|
||||
self.menu.port = port
|
||||
|
||||
fan = QtWidgets.QWidgetAction(self.menu)
|
||||
fan.setDefaultWidget(self.fan_group)
|
||||
self.menu.addAction(fan)
|
||||
self.menu.fan = fan
|
||||
|
||||
self.thermostat_settings.setMenu(self.menu)
|
||||
|
||||
async def _on_connection_changed(self, result):
|
||||
|
Loading…
Reference in New Issue
Block a user