Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a play and pause button when clicking on the menu bar item #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshspicer
Copy link
Owner

Add play and pause button functionality to the menu bar item.

  • Add @objc func playPauseSong(_ sender: Any?) to toggle play/pause state using AppleScript.
  • Update constructMenu to include "Play/Pause" button at the top of the menu.
  • Add playPauseScript to define the AppleScript for toggling play/pause state.
  • Update reloadSong to refresh the play/pause button state.

Add play and pause button functionality to the menu bar item.

* Add `@objc func playPauseSong(_ sender: Any?)` to toggle play/pause state using AppleScript.
* Update `constructMenu` to include "Play/Pause" button at the top of the menu.
* Add `playPauseScript` to define the AppleScript for toggling play/pause state.
* Update `reloadSong` to refresh the play/pause button state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant