Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
enable buttons back only if installation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed May 5, 2021
1 parent c64f291 commit 3cfee29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions igniter/install_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ def _on_run_btn_click(self, option):
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:
Expand Down Expand Up @@ -423,6 +421,7 @@ def _installation_finished(self):
QtWidgets.QApplication.processEvents()
self.done(3)
else:
self._enable_buttons()
self._show_console()

def _update_progress(self, progress: int):
Expand Down

0 comments on commit 3cfee29

Please sign in to comment.