prevent data loading when ftp client is active

This commit is contained in:
DYefremov
2021-05-17 14:34:32 +03:00
parent 94235a87ef
commit f6f0a8bb81

View File

@@ -1527,6 +1527,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: