AlexandrePTJ / kemai

Kimai desktop client
MIT License
90 stars 25 forks source link

Option to stop recording when the screen locks? #55

Closed sdreilinger closed 1 year ago

sdreilinger commented 1 year ago

Greetings @AlexandrePTJ:

This is an enhancement suggestion:

Would it be possible to have an option to stop the user's current Kemai recording when the screen is locked?

Would monitoring this Qt signal: applicationStateChanged make it possible?

https://doc.qt.io/qt-5/qguiapplication.html#applicationStateChanged https://doc.qt.io/qt-5/qt.html#ApplicationState-enum

Thanks for very much for considering it!

AlexandrePTJ commented 1 year ago

Thank you @sdreilinger for this proposal. I do like the idea !

AlexandrePTJ commented 1 year ago

Only Windows is available for now