Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Disable/enable tray punch #117
Context / Background
Tray punch button now follows the behaviour of the punch time button. It is disabled if the day is a non-working day or if all entries have already been punched.
What change is being introduced by this PR?
I added an observer on the punch button to see if the attribute changes to disabled. The result of this condition will send the value to main, setting the enabled key in the contextMenuTemplate. The tray menu will be rebuilt on dynamic values.