Commit 1f16144e authored by Benjamin Mummery's avatar Benjamin Mummery 💻

Version labelling in bottombar

parent b9d57186
......@@ -247,7 +247,7 @@ class NativeUI(HEVClient, QMainWindow):
self.setCentralWidget(self.display_stack)
# Set up status bar and window title (the title is only shown in windowed mode).
self.statusBar().showMessage("Waiting for data")
self.statusBar().showMessage("v%s - Waiting for data" % __version__)
self.statusBar().setStyleSheet("color:" + self.colors["page_foreground"].name())
self.setWindowTitle(self.text["ui_window_title"].format(version=__version__))
self.setPalette(palette)
......@@ -336,7 +336,7 @@ class NativeUI(HEVClient, QMainWindow):
)
)
self.widgets.calibration.button.pressed.connect(
lambda i = self.messagePopup: self.display_stack.setCurrentWidget(i)
lambda i=self.messagePopup: self.display_stack.setCurrentWidget(i)
)
self.widgets.leak_test.button.pressed.connect(
......@@ -766,7 +766,7 @@ class NativeUI(HEVClient, QMainWindow):
handlers return 0, indicating that the payload is not dealt with by any handler,
log a warning.
"""
self.statusBar().showMessage(f"{payload}")
self.statusBar().showMessage("v%s - %s" % (__version__, payload))
logging.debug("recieved payload of type %s", payload["type"])
payload_registered = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment