Skip to content

Commit

Permalink
pref: Display message if no notes are found
Browse files Browse the repository at this point in the history
Added a message to be displayed when no notes are found in the Simplenote list. This provides a more informative user experience, guiding the user to either wait for synchronization or create a new note.
  • Loading branch information
RedAtman committed Jul 30, 2024
1 parent 9203234 commit f3ed2db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions simplenotecommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def run(self):
if not start():
return

if Note.tree.count <= 0:
show_message(
"No notes found. Please wait for the synchronization to complete, or press [super+s+c] to create a note."
)
self.list__modificationDate: List[float] = []
self.list__title: List[str] = []
list__filename: List[str] = []
Expand Down

0 comments on commit f3ed2db

Please sign in to comment.