Skip to content
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

Remember enabled/disabled state #7

Closed
soredake opened this issue Mar 21, 2024 · 3 comments
Closed

Remember enabled/disabled state #7

soredake opened this issue Mar 21, 2024 · 3 comments

Comments

@soredake
Copy link

It would be nice if there could be an option to remember enabled/disabled state so it will be restored after restart. Or some command line switch to start NoSleep disabled.

@soredake soredake changed the title Remember enabled/disabled Remember enabled/disabled state Mar 21, 2024
@CHerSun
Copy link
Owner

CHerSun commented Mar 21, 2024

I've intentionally made that behavior. Idea is that if you start NoSleep - you do want it to prevent the sleeping by default. Adding startup state will add extra mess and will force users to manually check the state, rather then knowing it just works by default. Not sure that's a good behavior really. Let's keep this issue open for a while to see if other ppl want that.

CHerSun added a commit that referenced this issue Dec 28, 2024
- added option to remember Enabled state between reruns
- code refactoring - a small cleanup
- bug fixed - Enabling NoSleep didn't immediately apply the state
- moved app-wide settings out of the code, to native app.config
- removed compiled binary (see releases) and outdated readme.html
@CHerSun
Copy link
Owner

CHerSun commented Dec 28, 2024

Thought more about this, decided to add an option to remember the state with the default being the old behavior. Could you check the fresh version from releases (https://github.com/CHerSun/NoSleep/releases/tag/1.3.0)?

screenshot

@CHerSun
Copy link
Owner

CHerSun commented Dec 28, 2024

Closing this issue for now.

In case of any problems please just tag me here or create a new issue.

@CHerSun CHerSun closed this as completed Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants