Skip to content

Implement toggle for auto update check on startup#8

Open
numerfolt wants to merge 3 commits intoNastas95:mainfrom
numerfolt:main
Open

Implement toggle for auto update check on startup#8
numerfolt wants to merge 3 commits intoNastas95:mainfrom
numerfolt:main

Conversation

@numerfolt
Copy link
Copy Markdown

Hi, this is a really cool tool, thanks for creating it!

I dug through the code and noticed that the tool automatically checks for updates on every startup. I didnt know that and thought, it would only check for updates if I pushed the "Check Updates" button.

That's why I implemented a simple toggle (using a Checkbox) and a setting in the database. The setting is read on startup (and defaults to false) and sets the checkbox state. The checkbox state is then used to check whether to check for updates on startup or not.

I only wanted to include this change in the pull request, but don't work with github so often. Which is why I also included a commit that adds a comment about the ignored App IDs. This should make it easier for other people to understand why some apps are ignored :)

Looking back to hear from you!

This adds a checkbox to the footer, next to the update button. This checkbox is untoggled by default, because it's not clear to the user that it always searches for updates on startup. 
When the checkbox is toggled, the tool writes the user setting to the database and checks for updates on the next startup. On startup it reads the setting from the database and sets the toggle accordingly.
Use the variable that was read from the database instead of the checkbox toggle status.
@Nastas95
Copy link
Copy Markdown
Owner

This is a nice feature, I'll look into it later this weekend!

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

Successfully merging this pull request may close these issues.

2 participants