From fcc2742a36a364450a1412a0669fc4d11cbe2e69 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 7 Jan 2020 16:18:49 -0800 Subject: [PATCH] Add icon; when closing window use correct location of Qt app; print the command before executing the PDF reader --- dangerzone/main_window.py | 4 +++- dangerzone/tasks_widget.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dangerzone/main_window.py b/dangerzone/main_window.py index 31aebad..ddf8c35 100644 --- a/dangerzone/main_window.py +++ b/dangerzone/main_window.py @@ -13,6 +13,8 @@ class MainWindow(QtWidgets.QMainWindow): self.common = common self.setWindowTitle("dangerzone") + self.setWindowIcon(QtGui.QIcon(self.common.get_resource_path("logo.png"))) + self.setMinimumWidth(600) self.setMinimumHeight(350) @@ -74,4 +76,4 @@ class MainWindow(QtWidgets.QMainWindow): def closeEvent(self, e): e.accept() - self.app.quit() + self.common.app.quit() diff --git a/dangerzone/tasks_widget.py b/dangerzone/tasks_widget.py index a9aff01..9bfc0cf 100644 --- a/dangerzone/tasks_widget.py +++ b/dangerzone/tasks_widget.py @@ -95,6 +95,7 @@ class TasksWidget(QtWidgets.QWidget): args[i] = self.common.save_filename # Open as a background process + print(f"Executing: {' '.join(args)}") subprocess.Popen(args) # Clean up