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

Add config flag to disable online update check #650

Merged
merged 2 commits into from
May 6, 2024

Conversation

fkubicek
Copy link
Contributor

@fkubicek fkubicek commented Dec 9, 2023

This PR adds a compile time flag for disabling update checks in qView as requested by #631.

Update checks are disabled either by uncommenting the line
CONFIG += qv_disable_online_version_check
in qView.pro or the option can also be specified when compiling from the command line like this:
qmake "CONFIG+=qv_disable_online_version_check" ../qView/qView.pro

When this flag is present, checking for updates is completely removed from qView because the UpdateChecker class source files are not included in the project. A few macros are then used to remove references and calls of UpdateChecker. Settings and information labels that have to do with updates are hidden as well.

When the flag is not added, the program compiles and functions without any changes.

I tested this on Windows 10 and Kubuntu 22.04.

Here are some screenshots of hidden labels and checkboxes:

image

image

image

@jurplel jurplel merged commit 360fe7f into jurplel:master May 6, 2024
0 of 6 checks passed
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