File: disable-update-check.patch

package info (click to toggle)
deskflow 1.25.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,772 kB
  • sloc: cpp: 52,102; xml: 492; makefile: 14; sh: 11
file content (23 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Kentaro Hayashi <kenhys@xdump.org>
Date: Sat, 9 Aug 2025 20:00:58 +0900
Subject: Always disable update check on startup

Forwarded: not-needed
Author: Kentaro HAYASHI <kenhys@xdump.org>
---
 src/lib/gui/MainWindow.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp
index ba1c821..0739838 100644
--- a/src/lib/gui/MainWindow.cpp
+++ b/src/lib/gui/MainWindow.cpp
@@ -672,6 +672,8 @@ void MainWindow::open()
   const auto kCriticalDialogDelay = 100;
   QTimer::singleShot(kCriticalDialogDelay, this, &messages::raiseCriticalDialog);
 
+  // Always disable update check on startup
+  Settings::setValue(Settings::Gui::AutoUpdateCheck, false);
   if (!Settings::value(Settings::Gui::AutoUpdateCheck).isValid()) {
     Settings::setValue(Settings::Gui::AutoUpdateCheck, messages::showUpdateCheckOption(this));
   }