blacksailer / depecher

Depecher - Unofficial Sailfish OS client for Telegram based on tdlib
44 stars 32 forks source link

Add option to "Stop daemon automatically when app is switched off" #73

Closed EarthlingX closed 6 years ago

EarthlingX commented 6 years ago

Right now the daemon will run all the time if Depecher was opened once. He does not stop until I turn it of manually via system settings -> Depecher -> "Stop daemon". However, next time I open the app the daemon will start again and continues working until I switch it off again.

This is pretty annoying, because I receive all new messages even when the app is closed.

Maybe you can add a further option to the system settings:

The current one "Stop daemon" works fine for those guys who always want to receive messages. A second option "Stop daemon automatically when app is switched off" would help users like me to get exempted from receiving messages in times I do not want to use the app. :-)

When I want to use Depecher, the app is opened. If I do not want to receive messages, I want to switch it off without getting annoyed by new messages. It would be a great comfort to prevent the daemon from starting itself in case the proposed option is set.

Do you think you could implement such a feature? That would be awesome!

Thanks a lot! :-)