1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Enable updates check only on Windows

This commit is contained in:
David Rosca 2016-04-05 10:18:49 +02:00
parent 49315fa84e
commit 9a415bf40a
4 changed files with 6 additions and 12 deletions

View File

@ -99,12 +99,6 @@ Available Defines
example:
$ export NONBLOCK_JS_DIALOGS="true"
DISABLE_UPDATES_CHECK Disables option to check for updates at startup.
(disabled by default)
example:
$ export DISABLE_UPDATES_CHECK="true"
Windows specific defines:

View File

@ -288,8 +288,8 @@ MainApplication::MainApplication(int &argc, char** argv)
m_isStartingAfterCrash = settings.value("SessionRestore/isRunning", false).toBool();
settings.setValue("SessionRestore/isRunning", true);
#ifndef DISABLE_UPDATES_CHECK
bool checkUpdates = settings.value("Web-Browser-Settings/CheckUpdates", DEFAULT_CHECK_UPDATES).toBool();
#ifndef DISABLE_CHECK_UPDATES
bool checkUpdates = settings.value("Web-Browser-Settings/CheckUpdates", true).toBool();
if (checkUpdates) {
new Updater(window);

View File

@ -1,6 +1,6 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
* Copyright (C) 2010-2016 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -127,9 +127,9 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(Qz::NewTabPositionFlags)
#endif
#ifdef Q_OS_WIN
#define DEFAULT_CHECK_UPDATES true
#define DISABLE_CHECK_UPDATES false
#else
#define DEFAULT_CHECK_UPDATES false
#define DISABLE_CHECK_UPDATES true
#endif
#define DEFAULT_CHECK_DEFAULTBROWSER false

View File

@ -146,7 +146,7 @@ Preferences::Preferences(BrowserWindow* window)
ui->newTabUrl->setText(m_newTabUrl.toEncoded());
settings.endGroup();
ui->afterLaunch->setCurrentIndex(mApp->afterLaunch());
ui->checkUpdates->setChecked(settings.value("Web-Browser-Settings/CheckUpdates", DEFAULT_CHECK_UPDATES).toBool());
ui->checkUpdates->setChecked(settings.value("Web-Browser-Settings/CheckUpdates", true).toBool());
ui->dontLoadTabsUntilSelected->setChecked(settings.value("Web-Browser-Settings/LoadTabsOnActivation", true).toBool());
#if defined(Q_OS_WIN) && !defined(Q_OS_OS2)