diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2020-04-28 15:17:57 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2020-04-28 15:17:57 -0500 |
| commit | ef93139a808e6111094f5772eb810787f9a24061 (patch) | |
| tree | eb65cb0fec5a0920602dc27ec3b15d8593822c2f /src/main | |
| parent | 1b7844ec345033b7809ef69ad941bd8a4a3986fb (diff) | |
| parent | b022735506e448b1ffdfedcb5c11b27152516b18 (diff) | |
| download | monzero-gui-ef93139a808e6111094f5772eb810787f9a24061.tar.gz monzero-gui-ef93139a808e6111094f5772eb810787f9a24061.tar.xz monzero-gui-ef93139a808e6111094f5772eb810787f9a24061.zip | |
Merge pull request #2855
b022735 main: add --disable-check-updates flag (selsta)
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index 9de20ce4..16d91b0a 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -232,6 +232,8 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw (i.e. 'gpg -b hashes.txt') generated by another maintainer.", "update-binary"); parser.addOption(verifyUpdateOption); + QCommandLineOption disableCheckUpdatesOption("disable-check-updates", "Disable automatic check for updates."); + parser.addOption(disableCheckUpdatesOption); QCommandLineOption testQmlOption("test-qml"); testQmlOption.setFlags(QCommandLineOption::HiddenFromHelp); parser.addOption(logPathOption); @@ -467,6 +469,7 @@ 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()); + engine.rootContext()->setContextProperty("disableCheckUpdatesFlag", parser.isSet(disableCheckUpdatesOption)); bool builtWithScanner = false; #ifdef WITH_SCANNER |
