diff options
| author | selsta <selsta@sent.at> | 2022-05-01 06:09:29 +0200 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2022-05-01 06:09:29 +0200 |
| commit | 9b7bca611601a3b8a27a1e3aad636f74df47a162 (patch) | |
| tree | 887702a39953b04cd280128b8fd1e6e0bdba34bd /src | |
| parent | 2e2ae5c88fdc159477e8bc9ad871a892da83e935 (diff) | |
| download | monzero-gui-9b7bca611601a3b8a27a1e3aad636f74df47a162.tar.gz monzero-gui-9b7bca611601a3b8a27a1e3aad636f74df47a162.tar.xz monzero-gui-9b7bca611601a3b8a27a1e3aad636f74df47a162.zip | |
main: add compile time option to disable updates
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index db339d71..e6a1cda1 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -498,7 +498,11 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw engine.rootContext()->setContextProperty("homePath", QDir::homePath()); engine.rootContext()->setContextProperty("applicationDirectory", QApplication::applicationDirPath()); engine.rootContext()->setContextProperty("idealThreadCount", QThread::idealThreadCount()); +#ifdef WITH_UPDATER engine.rootContext()->setContextProperty("disableCheckUpdatesFlag", parser.isSet(disableCheckUpdatesOption)); +#else + engine.rootContext()->setContextProperty("disableCheckUpdatesFlag", true); +#endif engine.rootContext()->setContextProperty("socksProxyFlag", parser.value(socksProxyOption)); engine.rootContext()->setContextProperty("socksProxyFlagSet", parser.isSet(socksProxyOption)); |
