Check browser destination before displaying save dialog. Fixes #35.

This commit is contained in:
Mark Qvist 2024-02-29 18:42:47 +01:00
parent e695cce3ba
commit 6026f42f34

View File

@ -664,6 +664,8 @@ class Browser:
self.delegate.columns.focus_position = 1 self.delegate.columns.focus_position = 1
def save_node_dialog(self): def save_node_dialog(self):
if self.destination_hash != None:
try:
def dismiss_dialog(sender): def dismiss_dialog(sender):
self.close_dialogs() self.close_dialogs()
@ -710,6 +712,8 @@ class Browser:
self.delegate.columns.contents[1] = (overlay, options) self.delegate.columns.contents[1] = (overlay, options)
self.delegate.columns.focus_position = 1 self.delegate.columns.focus_position = 1
except Exception as e:
pass
def load_page(self): def load_page(self):
if self.request_data == None: if self.request_data == None: