mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
enable buttons back only if installation fails
This commit is contained in:
parent
c64f29100c
commit
3cfee291f2
1 changed files with 1 additions and 2 deletions
|
|
@ -383,8 +383,6 @@ class InstallDialog(QtWidgets.QDialog):
|
|||
else:
|
||||
raise AssertionError("BUG: Unknown variant \"{}\"".format(option))
|
||||
|
||||
self._enable_buttons()
|
||||
|
||||
def _run_openpype_from_code(self):
|
||||
os.environ["OPENPYPE_MONGO"] = self.mongo_url
|
||||
try:
|
||||
|
|
@ -423,6 +421,7 @@ class InstallDialog(QtWidgets.QDialog):
|
|||
QtWidgets.QApplication.processEvents()
|
||||
self.done(3)
|
||||
else:
|
||||
self._enable_buttons()
|
||||
self._show_console()
|
||||
|
||||
def _update_progress(self, progress: int):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue