Hello there, I added a few features that I needed while I was using ICare, and those being a nice background because the black one was just too basic and the timer stopping when the screen goes to sleep or when I lock the pc. To know when the pc went to sleep or the user locked the pc, I attached a listener to a SystemEvents thing, I don’t really know what it is, and now it constantly checks for SessionLock and SessionUnlock and pauses and starts the timer accordantly.
For the pausing and starting the timer, I have redone its logic. Now, instead of calculating the exact time the break should start I use a stopwatch to track how much time has passed and when it reaches the desired time it triggers the break. It wasn’t easy because I runed into many bugs where, for example, it would just instantly start the break once the app launched and many such errors, but the latest version works flawlessly!
Thanks for reading! Consider leaving a like or a comment if you enjoyed this devlog q(≧▽≦q)!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.