🛠️ Display dialog on manual version update check, if no new version available.
This commit is contained in:
@@ -52,6 +52,10 @@ class DialogVersion(QtWidgets.QDialog):
|
||||
)
|
||||
else:
|
||||
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_changelog_details.setText(update_info.release_info)
|
||||
self.ui.pb_download.clicked.connect(lambda: webbrowser.open(update_info.url))
|
||||
|
||||
@@ -294,7 +294,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
def on_update_check(self):
|
||||
is_available, info = update_available()
|
||||
|
||||
if is_available:
|
||||
self.s_update_show.emit(True, is_available, info)
|
||||
|
||||
def apply_settings(self, settings: Settings):
|
||||
|
||||
Reference in New Issue
Block a user