mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
change title
This commit is contained in:
parent
ac79f24e40
commit
2a848bbb97
1 changed files with 5 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class VersionDialog(QtWidgets.QDialog):
|
|||
|
||||
def __init__(self, parent=None):
|
||||
super(VersionDialog, self).__init__(parent)
|
||||
self.setWindowTitle("OpenPype update is needed")
|
||||
|
||||
icon = QtGui.QIcon(resources.get_openpype_icon_filepath())
|
||||
self.setWindowIcon(icon)
|
||||
self.setWindowFlags(
|
||||
|
|
@ -167,6 +167,7 @@ class VersionDialog(QtWidgets.QDialog):
|
|||
self, current_version, expected_version, current_is_higher
|
||||
):
|
||||
if not current_is_higher:
|
||||
title = "OpenPype update is needed"
|
||||
label_message = (
|
||||
"Running OpenPype version is <b>{}</b>."
|
||||
" Your production has been updated to version <b>{}</b>."
|
||||
|
|
@ -174,6 +175,7 @@ class VersionDialog(QtWidgets.QDialog):
|
|||
ignore_label = "Later"
|
||||
restart_label = "Restart && Update"
|
||||
else:
|
||||
title = "OpenPype version is higher"
|
||||
label_message = (
|
||||
"Running OpenPype version is <b>{}</b>."
|
||||
" Your production should use version <b>{}</b>."
|
||||
|
|
@ -181,6 +183,8 @@ class VersionDialog(QtWidgets.QDialog):
|
|||
ignore_label = "I know"
|
||||
restart_label = "Restart && Change"
|
||||
|
||||
self.setWindowTitle(title)
|
||||
|
||||
self._current_is_higher = current_is_higher
|
||||
|
||||
self._gift_icon_label.setVisible(not current_is_higher)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue