Merge pull request #1474 from pypeclub/bugfix/run_btn_enabled

Igniter buttons enable/disable fix
This commit is contained in:
Milan Kolar 2021-05-05 22:40:38 +02:00 committed by GitHub
commit ff6be32a81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -383,8 +383,6 @@ class InstallDialog(QtWidgets.QDialog):
else: else:
raise AssertionError("BUG: Unknown variant \"{}\"".format(option)) raise AssertionError("BUG: Unknown variant \"{}\"".format(option))
self._enable_buttons()
def _run_openpype_from_code(self): def _run_openpype_from_code(self):
os.environ["OPENPYPE_MONGO"] = self.mongo_url os.environ["OPENPYPE_MONGO"] = self.mongo_url
try: try:
@ -423,6 +421,7 @@ class InstallDialog(QtWidgets.QDialog):
QtWidgets.QApplication.processEvents() QtWidgets.QApplication.processEvents()
self.done(3) self.done(3)
else: else:
self._enable_buttons()
self._show_console() self._show_console()
def _update_progress(self, progress: int): def _update_progress(self, progress: int):