mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-01-27 09:50:11 +01:00
prevent data loading when ftp client is active
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user