fix: export dialog
Build / Flatpak (x86_64) (push) Failing after 1h3m50s Details

This commit is contained in:
0xMRTT 2023-08-03 15:11:31 +02:00
parent 72d3bcdf45
commit 2a9f2fc90e
2 changed files with 4 additions and 6 deletions

View File

@ -40,4 +40,5 @@ class ExportDialog(Adw.MessageDialog):
def handle_response(self, dialog, response, *args, **kwargs):
if response == "export":
dialog = SaveDialog(self.parent, self.text)
dialog.set_transient_for(self.parent)
dialog.present()

View File

@ -109,18 +109,15 @@ class BavarderWindow(Adw.ApplicationWindow):
return self.threads_list.get_selected_row().get_child().chat
except AttributeError: # create a new chat
#self.on_new_chat_action()
pass
finally:
return self.threads_list.get_selected_row().get_child().chat
return {}
@property
def content(self):
try:
return self.chat["content"]
except KeyError: # no content
self.chat["content"] = []
finally:
return self.chat["content"]
return []
def load_threads(self):
print("LOADING")