diff --git a/usr/lib/sticky/sticky.py b/usr/lib/sticky/sticky.py index 2b227e9..862490c 100755 --- a/usr/lib/sticky/sticky.py +++ b/usr/lib/sticky/sticky.py @@ -35,6 +35,8 @@ + + @@ -835,6 +837,9 @@ def dbus_method_callback(self, connection, sender, path, iface_name, method_name elif method_name == 'NewNoteBlank': self.new_note() + elif method_name == 'ReloadNotesFromFile': + self.reload_notes_from_file() + def first_run(self): gnote_dir = os.path.join(GLib.get_user_data_dir(), 'gnote') @@ -1066,6 +1071,10 @@ def load_notes(self): for note_info in self.file_handler.get_note_list(self.note_group): self.generate_note(note_info) + def reload_notes_from_file(self): + self.file_handler.load_notes() + self.load_notes(); + def duplicate_note(self, new_note): new_note_info = new_note.get_info() new_note_info['x'] += 50