prevent data loading when ftp client is active

This commit is contained in:
DYefremov
2021-05-17 14:34:32 +03:00
parent 0589e0bbf5
commit 2c0be17738

View File

@@ -1569,6 +1569,9 @@ class Application(Gtk.Application):
def open_data(self, data_path=None, callback=None):
""" Opening data and fill views. """
if self._ftp_button.get_active():
return
if data_path and os.path.isfile(data_path):
self.open_compressed_data(data_path)
else: