mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
Merge pull request #2855
b022735
main: add --disable-check-updates flag (selsta)
This commit is contained in:
commit
ef93139a80
2 changed files with 7 additions and 3 deletions
7
main.qml
7
main.qml
|
@ -1317,8 +1317,6 @@ ApplicationWindow {
|
||||||
openWallet("wizard");
|
openWallet("wizard");
|
||||||
}
|
}
|
||||||
|
|
||||||
checkUpdates();
|
|
||||||
|
|
||||||
if(persistentSettings.fiatPriceEnabled){
|
if(persistentSettings.fiatPriceEnabled){
|
||||||
appWindow.fiatApiRefresh();
|
appWindow.fiatApiRefresh();
|
||||||
appWindow.fiatTimerStart();
|
appWindow.fiatTimerStart();
|
||||||
|
@ -2008,7 +2006,10 @@ ApplicationWindow {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: updatesTimer
|
id: updatesTimer
|
||||||
interval: 3600*1000; running: true; repeat: true
|
interval: 3600 * 1000
|
||||||
|
repeat: true
|
||||||
|
running: !disableCheckUpdatesFlag
|
||||||
|
triggeredOnStart: true
|
||||||
onTriggered: checkUpdates()
|
onTriggered: checkUpdates()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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");
|
(i.e. 'gpg -b hashes.txt') generated by another maintainer.", "update-binary");
|
||||||
parser.addOption(verifyUpdateOption);
|
parser.addOption(verifyUpdateOption);
|
||||||
|
|
||||||
|
QCommandLineOption disableCheckUpdatesOption("disable-check-updates", "Disable automatic check for updates.");
|
||||||
|
parser.addOption(disableCheckUpdatesOption);
|
||||||
QCommandLineOption testQmlOption("test-qml");
|
QCommandLineOption testQmlOption("test-qml");
|
||||||
testQmlOption.setFlags(QCommandLineOption::HiddenFromHelp);
|
testQmlOption.setFlags(QCommandLineOption::HiddenFromHelp);
|
||||||
parser.addOption(logPathOption);
|
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("homePath", QDir::homePath());
|
||||||
engine.rootContext()->setContextProperty("applicationDirectory", QApplication::applicationDirPath());
|
engine.rootContext()->setContextProperty("applicationDirectory", QApplication::applicationDirPath());
|
||||||
engine.rootContext()->setContextProperty("idealThreadCount", QThread::idealThreadCount());
|
engine.rootContext()->setContextProperty("idealThreadCount", QThread::idealThreadCount());
|
||||||
|
engine.rootContext()->setContextProperty("disableCheckUpdatesFlag", parser.isSet(disableCheckUpdatesOption));
|
||||||
|
|
||||||
bool builtWithScanner = false;
|
bool builtWithScanner = false;
|
||||||
#ifdef WITH_SCANNER
|
#ifdef WITH_SCANNER
|
||||||
|
|
Loading…
Reference in a new issue