修复当无法启动 PyInstaller 子进程时没有任何反馈的问题;
This commit is contained in:
muzing 2022-12-07 15:58:10 +08:00
parent b2f7fffc53
commit cc59a80602

View File

@ -205,6 +205,11 @@ class SubProcessDlg(QDialog):
self.info_label.setText(output_text)
if output_text == "正在运行中……":
self.multifunction_btn.setText("取消")
elif output_type == SubProcessTool.ERROR:
self.info_label.setText("PyInstaller错误")
self.browser.append(output_text)
self.browser.append("请检查是否已经安装正确版本的 PyInstaller")
self.multifunction_btn.setText("关闭")
@Slot()
def handle_multifunction(self) -> None:
@ -225,3 +230,5 @@ class SubProcessDlg(QDialog):
subprocess.call(["xdg-open", dist_path])
elif self.parent().running_platform == PLATFORM.macos:
subprocess.call(["open", dist_path])
elif btn_text == "关闭":
self.close()