eXpl0it3r / streamdeck-clockify

Clockify Action for the Elgato Stream Deck
MIT License
46 stars 8 forks source link

Multiple timers on the same project with different tasks show the same timer #23

Open HughMacdonald opened 1 month ago

HughMacdonald commented 1 month ago

If you have multiple tasks in Clockify in a project, and have separate StreamDeck buttons linked to each one, when you start a timer, all of the buttons show the same timer.

Looking at the code (https://github.com/eXpl0it3r/streamdeck-clockify/blob/b98db7b354131463ba2c166c6a52813f63b115cc/Clockify/ClockifyContext.cs#L141), it doesn't appear to use the task name when identifying the timer that is currently running.

eXpl0it3r commented 1 month ago

Good point, if we do have the task set, we should also filter for it.
Maybe that was broken in the last refactoring.