mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-02 09:35:33 -05:00
Show the alert on the the dragEnterEvent
This commit is contained in:
parent
ab800c577a
commit
6b521c152e
@ -187,6 +187,7 @@ class FileList(QtWidgets.QListWidget):
|
|||||||
"""
|
"""
|
||||||
# Drag and drop doesn't work in Flatpak, because of the sandbox
|
# Drag and drop doesn't work in Flatpak, because of the sandbox
|
||||||
if self.common.platform == "Linux" and os.path.exists("/app/manifest.json"):
|
if self.common.platform == "Linux" and os.path.exists("/app/manifest.json"):
|
||||||
|
Alert(self.common, strings._("gui_dragdrop_sandbox_flatpak").format())
|
||||||
event.ignore()
|
event.ignore()
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -242,7 +243,6 @@ class FileList(QtWidgets.QListWidget):
|
|||||||
"""
|
"""
|
||||||
# Drag and drop doesn't work in Flatpak, because of the sandbox
|
# Drag and drop doesn't work in Flatpak, because of the sandbox
|
||||||
if self.common.platform == "Linux" and os.path.exists("/app/manifest.json"):
|
if self.common.platform == "Linux" and os.path.exists("/app/manifest.json"):
|
||||||
Alert(self.common, strings._("gui_dragdrop_sandbox_flatpak").format())
|
|
||||||
event.ignore()
|
event.ignore()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user