fix: export dialog
Build / Flatpak (x86_64) (push) Failing after 1h3m50s
Details
Build / Flatpak (x86_64) (push) Failing after 1h3m50s
Details
This commit is contained in:
parent
72d3bcdf45
commit
2a9f2fc90e
|
@ -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()
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue