🛠️ Display dialog on manual version update check, if no new version available.

This commit is contained in:
Robert Honz
2024-04-25 23:13:48 +02:00
parent 07e5366193
commit 7f8912d83b
2 changed files with 5 additions and 2 deletions
+4
View File
@@ -52,6 +52,10 @@ class DialogVersion(QtWidgets.QDialog):
) )
else: else:
self.error_hide() self.error_hide()
if not update_available:
self.ui.l_h_version_new.setText("Latest available version:")
self.ui.l_version_new.setText(update_info.version) self.ui.l_version_new.setText(update_info.version)
self.ui.l_changelog_details.setText(update_info.release_info) self.ui.l_changelog_details.setText(update_info.release_info)
self.ui.pb_download.clicked.connect(lambda: webbrowser.open(update_info.url)) self.ui.pb_download.clicked.connect(lambda: webbrowser.open(update_info.url))
-1
View File
@@ -294,7 +294,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
def on_update_check(self): def on_update_check(self):
is_available, info = update_available() is_available, info = update_available()
if is_available:
self.s_update_show.emit(True, is_available, info) self.s_update_show.emit(True, is_available, info)
def apply_settings(self, settings: Settings): def apply_settings(self, settings: Settings):