-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better autostart state display and handling #293
Comments
With this change, will disabling autostart also remove any registry or scheduler entries? You did mention that @Armin2208 intentionally did not allow this for some reason in #259 (comment). Maybe the Edit: Other than that I like it!! |
A disable button for Autostart isn't necessary, because User can just deactivate it in Windows Settings or Task-Manager. |
If you want a technical explanation, I can give you one. But as with all design decisions, they're not that simple. The new autostart handler supports the following methods:
As you can see, Toggling the switch thus will remove all entries when set to off. In a addition to that:
The validation behavior is especially useful, because that way auto-validation can be optionally disabled by setting the |
@Armin2208 Done!! Pushed to beta 🚀 |
service.log |
That does look like it is disabled tho. Auto Dark Mode did not incorrectly detect the startupapproved value, a binary value starting with "03" means that the entry has been disabled! enableddisabled |
|
@Spiritreader Thanks for your detailed explanation! That helped a lot. A validate method makes sense and the button has an important value in that case. Well thought out! The only thing I do not like about it is that the user is not informed that something he might have changed on purpose at on one point is now reversed in secret without him knowing.
That's all I wanted to hear, perfect! 👍 |
Hmm I believe there is something I can do that prevents this scenario altogether. |
Alright, Auto Dark Mode now behaves in the following way:
So how does that get rid of silent autostart adds?Because this way I was able to modify the "Start Auto Dark Mode with Windows" toggle:
Validation can also be disabled via the yaml config file, and as long as noone touches the toggle setting in the app, it will stay disabled. (This is useful for people like me who run Auto Dark Mode for personal use as standalone, and debug on another build) This results in returning true governance over the autostart behavior to the user as it can be permanently disabled now, and will auto-validate again when enabled! How does that conform with the "make it impossible to accidentally disable autostart" policy?Since Autostart is still enabled by default, and disabling it comes with significant resistance (found on the bottom of the settings page + message box telling people not to), it is pretty much impossible to do this unknowingly. This solution should fulfill the two requirements that have been drafted here:
Thanks for your input @tooomm! |
I like it a lot. One tiny nitpick: |
Describe the enhancement or feature you'd like
Enhancement derived from #259 (comment) by @tooomm
Idea is to create a settings section with the title "Autostart" that
How to implement
@Armin2208, please let me know what you think. Close the issue if you don't want sth like this.
The text was updated successfully, but these errors were encountered: