Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from MenuNote/rebrand-1
Browse files Browse the repository at this point in the history
Change all instances of BarNotes to MenuNote
  • Loading branch information
bennyscripts authored Feb 13, 2022
2 parents b658450 + 31a1fa7 commit ebdc272
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@

user_name = getpass.getuser()

class BarNotes(rumps.App):
class MenuNote(rumps.App):
def __init__(self):
super(BarNotes, self).__init__("BarNotes", title=" " + Note.get_note(), icon=f"/users/{user_name}/Library/Application Support/BarNotes/icon.png", template=True)
super(MenuNote, self).__init__("MenuNote", title=" " + Note.get_note(), icon=f"/users/{user_name}/Library/Application Support/MenuNote/icon.png", template=True)

self.logger = Logger()
self.logger.log("BarNotes initialized")
self.logger.log("MenuNote initialized")

self.menu = ["Edit Note"]

@rumps.clicked("Edit Note")
def edit(self, _):
window = rumps.Window(title="Edit your note", message="The max amount of characters is 100.", dimensions=(300, 85), ok="Save", cancel="Cancel")
window.default_text = Note.get_note()
window.icon = f"/users/{user_name}/Library/Application Support/BarNotes/icon.png"
window.icon = f"/users/{user_name}/Library/Application Support/MenuNote/icon.png"

self.logger.log("Edit Note window opened")

Expand All @@ -33,10 +33,10 @@ def edit(self, _):
self.logger.log("Note was not changed")

def start(self):
self.logger.log("BarNotes running")
self.logger.log("MenuNote running")
self.run()

if __name__ == "__main__":
check_files()
app = BarNotes()
app = MenuNote()
app.start()

0 comments on commit ebdc272

Please sign in to comment.