Save changes on server

This commit is contained in:
Jeena 2024-05-16 08:57:30 +09:00
parent 95091ae54e
commit 5bc0a2f480
2 changed files with 38 additions and 4 deletions

View file

@ -108,9 +108,10 @@ class JnotesApplication(Adw.Application):
)
def on_note_selected(self, container, row):
calendar = self.props.active_window.notes_list.calendar
note = calendar[row.get_index()]
self.props.active_window.note_edit.set_note(note)
if row:
calendar = self.props.active_window.notes_list.calendar
note = calendar[row.get_index()]
self.props.active_window.note_edit.set_note(note)
def main(version):
"""The application's entry point."""