mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 18:22:37 +02:00
Set QT_MAC_WANTS_LAYER env variable to work in Big Sur
This commit is contained in:
parent
d7e79385d2
commit
78e23a1e8b
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ class Application(QtWidgets.QApplication):
|
||||||
@click.option("--custom-container") # Use this container instead of flmcode/dangerzone
|
@click.option("--custom-container") # Use this container instead of flmcode/dangerzone
|
||||||
@click.argument("filename", required=False)
|
@click.argument("filename", required=False)
|
||||||
def gui_main(custom_container, filename):
|
def gui_main(custom_container, filename):
|
||||||
|
# Required for macOS Big Sur: https://stackoverflow.com/a/64878899
|
||||||
|
if platform.system() == "Darwin":
|
||||||
|
os.environ["QT_MAC_WANTS_LAYER"] = "1"
|
||||||
|
|
||||||
# Create the Qt app
|
# Create the Qt app
|
||||||
app = Application()
|
app = Application()
|
||||||
app.setQuitOnLastWindowClosed(False)
|
app.setQuitOnLastWindowClosed(False)
|
||||||
|
|
Loading…
Reference in a new issue