From aa5b49accc5efed14736a3719f35ed1eda90d993 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Fri, 3 Apr 2020 21:32:03 +0200 Subject: [PATCH] Increase default poll time to 30 sec --- app/SysTray-X/preferences.cpp | 4 ++-- app/SysTray-X/preferences.ui | 4 ++-- create_win_installers.sh | 2 +- webext/background.js | 8 ++++---- webext/js/defaults.js | 4 ++-- webext/options.html | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/SysTray-X/preferences.cpp b/app/SysTray-X/preferences.cpp index c7f05dd..5e12263 100644 --- a/app/SysTray-X/preferences.cpp +++ b/app/SysTray-X/preferences.cpp @@ -30,8 +30,8 @@ Preferences::Preferences( QObject *parent ) : QObject( parent ) m_hide_minimize = true; m_start_minimized = false; - m_poll_startup_delay = 5; - m_poll_interval = 5; + m_poll_startup_delay = 30; + m_poll_interval = 30; m_debug = false; } diff --git a/app/SysTray-X/preferences.ui b/app/SysTray-X/preferences.ui index 4d770b7..7d9edf5 100644 --- a/app/SysTray-X/preferences.ui +++ b/app/SysTray-X/preferences.ui @@ -173,7 +173,7 @@ 1 - 5 + 30 @@ -194,7 +194,7 @@ 1 - 5 + 30 diff --git a/create_win_installers.sh b/create_win_installers.sh index 14838d1..2903792 100755 --- a/create_win_installers.sh +++ b/create_win_installers.sh @@ -2,7 +2,7 @@ UPLOAD_SERVER="upload.server.com" UPLOAD_USER="user" UPLOAD_PASSWORD="password" -UPLOAD_DIR="~/src/systray-x/bin" +UPLOAD_DIR="src/systray-x/bin" BUILD_FARM="build.farm.com" BUILD_FARM_USER="farmuser" diff --git a/webext/background.js b/webext/background.js index adc14ad..7d8e7c8 100644 --- a/webext/background.js +++ b/webext/background.js @@ -2,8 +2,8 @@ var SysTrayX = { debugAccounts: false, pollTiming: { - pollStartupDelay: "5", - pollInterval: "5" + pollStartupDelay: "30", + pollInterval: "30" }, platformInfo: undefined @@ -156,8 +156,8 @@ SysTrayX.Messaging = { sendPreferencesStorage: function(result) { const debug = result.debug || "false"; - const pollStartupDelay = result.pollStartupDelay || "5"; - const pollInterval = result.pollInterval || "5"; + const pollStartupDelay = result.pollStartupDelay || "30"; + const pollInterval = result.pollInterval || "30"; const hideOnMinimize = result.hideOnMinimize || "true"; const startMinimized = result.startMinimized || "false"; const iconType = result.iconType || "0"; diff --git a/webext/js/defaults.js b/webext/js/defaults.js index b79aa90..6ba4ab2 100644 --- a/webext/js/defaults.js +++ b/webext/js/defaults.js @@ -73,11 +73,11 @@ async function getStartupState() { // async function getPollTiming() { function getDelayAndInterval(result) { - return { pollStartupDelay: result.pollStartupDelay || "5", pollInterval: result.pollInterval || "5" }; + return { pollStartupDelay: result.pollStartupDelay || "30", pollInterval: result.pollInterval || "30" }; } function onDelayAndIntervalError() { - return { pollStartupDelay: "5", pollInterval: "5" }; + return { pollStartupDelay: "30", pollInterval: "30" }; } const getTiming = browser.storage.sync.get([ diff --git a/webext/options.html b/webext/options.html index 248424a..57ff56c 100644 --- a/webext/options.html +++ b/webext/options.html @@ -95,7 +95,7 @@ step="1" min="1" max="99" - value="5" + value="30" style="width: 3em;" /> @@ -112,7 +112,7 @@ step="1" min="1" max="99" - value="5" + value="30" style="width: 3em;" />