Skip to content

Commit cb31646

Browse files
committed
Change override message box to warning
1 parent 99bdeaf commit cb31646

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

u-blox_Update_GUI/RTK_u-blox_Update_GUI.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def button_state(self, b) -> None:
215215
self.training_btn.setEnabled(False)
216216
elif b.text() == "Override":
217217
if b.isChecked() == True:
218-
self.show_error_message(">>>>> Override enabled <<<<<\nFirmware version check is disabled")
218+
self.show_warning_message(">>>>> Override enabled <<<<<\nFirmware version check is disabled")
219219

220220
def writeMessage(self, msg) -> None:
221221
self.messageBox.moveCursor(QTextCursor.End)
@@ -274,6 +274,10 @@ def show_error_message(self, msg: str) -> None:
274274
"""Show a Message Box with the error message."""
275275
QMessageBox.critical(self, QApplication.applicationName(), str(msg))
276276

277+
def show_warning_message(self, msg: str) -> None:
278+
"""Show a Message Box with the warning."""
279+
QMessageBox.warning(self, QApplication.applicationName(), str(msg))
280+
277281
def update_com_ports(self) -> None:
278282
"""Update COM Port list in GUI."""
279283
previousPort = self.port # Record the previous port before we clear the combobox
Binary file not shown.

0 commit comments

Comments
 (0)