Add icon; when closing window use correct location of Qt app; print the command before executing the PDF reader

This commit is contained in:
Micah Lee 2020-01-07 16:18:49 -08:00
parent cbc4a1e7ea
commit fcc2742a36
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 4 additions and 1 deletions

View file

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

View file

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