File: auto_update

package info (click to toggle)
qtads 3.4.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 24,444 kB
  • sloc: cpp: 181,208; ansic: 46,562; python: 993; sh: 68; xml: 68; makefile: 6
file content (21 lines) | stat: -rw-r--r-- 777 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: disable auto check for updates
 This is only the default setting,
 users can re-enable it if they want.
Author: Alexandre Detiste
Forwarded: not-needed
Last-Update: 2023-05-19 <YYYY-MM-DD, last update of the meta-information, optional>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/sysframe.cc
+++ b/src/sysframe.cc
@@ -363,8 +363,8 @@ void CHtmlSysFrameQt::entryPoint(QString gameFileName)
         break;
     }
     if (not fSettings.lastUpdateDate.isValid()) {
-        // Force update check.
-        daysRequired = 0;
+        // Default to no update
+        daysRequired = -1;
     }
     int daysPassed = fSettings.lastUpdateDate.daysTo(QDate::currentDate());
     if (daysPassed >= daysRequired and daysRequired > -1) {