When giving flatpak warning, break before setting the selected dir

This commit is contained in:
Micah Lee 2020-06-30 14:40:40 -07:00
parent 903f4001e5
commit 7b5c8e8b31
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -140,6 +140,7 @@ class ReceiveMode(Mode):
if self.common.gui.is_flatpak:
if not selected_dir.startswith(os.path.expanduser("~/OnionShare")):
Alert(self.common, strings._("gui_receive_flatpak_data_dir"))
break
self.common.log(
"ReceiveMode",