diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2022-06-09 13:56:25 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2022-06-09 13:56:25 -0500 |
| commit | 17dfd2e9ed292f316ce5383046fadfeba4f12ec0 (patch) | |
| tree | d4985865acd549d6effba38f8e3f9ea658586b98 /src/main | |
| parent | 49d8a6b91d6ba89ec99893cb6cc25efa6eeb5c1c (diff) | |
| parent | 9b7bca611601a3b8a27a1e3aad636f74df47a162 (diff) | |
| download | monzero-gui-17dfd2e9ed292f316ce5383046fadfeba4f12ec0.tar.gz monzero-gui-17dfd2e9ed292f316ce5383046fadfeba4f12ec0.tar.xz monzero-gui-17dfd2e9ed292f316ce5383046fadfeba4f12ec0.zip | |
Merge pull request #3906
9b7bca6 main: add compile time option to disable updates (selsta)
Diffstat (limited to 'src/main')
| -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)); |
