Show the alert on the the dragEnterEvent

This commit is contained in:
Micah Lee 2021-11-14 16:11:39 -08:00
parent 36a2132887
commit 83ba109852

View File

@ -187,6 +187,7 @@ class FileList(QtWidgets.QListWidget):
"""
# Drag and drop doesn't work in Flatpak, because of the sandbox
if self.common.platform == "Linux" and os.path.exists("/app/manifest.json"):
Alert(self.common, strings._("gui_dragdrop_sandbox_flatpak").format())
event.ignore()
return
@ -242,7 +243,6 @@ class FileList(QtWidgets.QListWidget):
"""
# Drag and drop doesn't work in Flatpak, because of the sandbox
if self.common.platform == "Linux" and os.path.exists("/app/manifest.json"):
Alert(self.common, strings._("gui_dragdrop_sandbox_flatpak").format())
event.ignore()
return