enable buttons back only if installation fails

This commit is contained in:
iLLiCiTiT 2021-05-05 19:41:00 +02:00
parent c64f29100c
commit 3cfee291f2

View file

@ -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):