mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Add icon; when closing window use correct location of Qt app; print the command before executing the PDF reader
This commit is contained in:
parent
cbc4a1e7ea
commit
fcc2742a36
2 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,8 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||||
self.common = common
|
self.common = common
|
||||||
|
|
||||||
self.setWindowTitle("dangerzone")
|
self.setWindowTitle("dangerzone")
|
||||||
|
self.setWindowIcon(QtGui.QIcon(self.common.get_resource_path("logo.png")))
|
||||||
|
|
||||||
self.setMinimumWidth(600)
|
self.setMinimumWidth(600)
|
||||||
self.setMinimumHeight(350)
|
self.setMinimumHeight(350)
|
||||||
|
|
||||||
|
@ -74,4 +76,4 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||||
|
|
||||||
def closeEvent(self, e):
|
def closeEvent(self, e):
|
||||||
e.accept()
|
e.accept()
|
||||||
self.app.quit()
|
self.common.app.quit()
|
||||||
|
|
|
@ -95,6 +95,7 @@ class TasksWidget(QtWidgets.QWidget):
|
||||||
args[i] = self.common.save_filename
|
args[i] = self.common.save_filename
|
||||||
|
|
||||||
# Open as a background process
|
# Open as a background process
|
||||||
|
print(f"Executing: {' '.join(args)}")
|
||||||
subprocess.Popen(args)
|
subprocess.Popen(args)
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
|
|
Loading…
Reference in a new issue