Debian Codegraph @

debian/patches/auto_update

raw
1 Description: disable auto check for updates
2 This is only the default setting,
3 users can re-enable it if they want.
4 Author: Alexandre Detiste
5 Forwarded: not-needed
6 Last-Update: 2023-05-19
7 ---
8 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
9 --- a/src/sysframe.cc
10 +++ b/src/sysframe.cc
11 @@ -363,8 +363,8 @@ void CHtmlSysFrameQt::entryPoint(QString gameFileName)
12 break;
13 }
14 if (not fSettings.lastUpdateDate.isValid()) {
15 - // Force update check.
16 - daysRequired = 0;
17 + // Default to no update
18 + daysRequired = -1;
19 }
20 int daysPassed = fSettings.lastUpdateDate.daysTo(QDate::currentDate());
21 if (daysPassed >= daysRequired and daysRequired > -1) {