Merge pull request #243 from Northern-Lights/ui-fix

Add () to str cat to fix % fmt
This commit is contained in:
evilsocket 2019-02-15 11:47:17 +01:00 committed by GitHub
commit fbc4a6d8d2
Failed to generate hash of commit

View file

@ -120,8 +120,8 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject):
if self._version_warning_shown == False:
self._msg.setIcon(QtWidgets.QMessageBox.Warning)
self._msg.setWindowTitle("OpenSnitch version mismatch!")
self._msg.setText("You are running version <b>%s</b> of the daemon, while the UI is at version " + \
"<b>%s</b>, they might not be fully compatible." % (daemon_ver, ui_ver))
self._msg.setText(("You are running version <b>%s</b> of the daemon, while the UI is at version " + \
"<b>%s</b>, they might not be fully compatible.") % (daemon_ver, ui_ver))
self._msg.setStandardButtons(QtWidgets.QMessageBox.Ok)
self._msg.show()
self._version_warning_shown = True