python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / sh / shadps4 / 0001-Disable-update-checking.patch
blob874f20ef493a7a715ced726b538e69846cd096b8
1 From 266a090882133e30df20899bbf8a5b66b28e02cd Mon Sep 17 00:00:00 2001
2 From: OPNA2608 <opna2608@protonmail.com>
3 Date: Mon, 14 Oct 2024 00:31:01 +0200
4 Subject: [PATCH] Disable update checking
6 Downloading an AppImage and trying to run it just won't work.
7 ---
8 src/qt_gui/check_update.cpp | 6 ++++++
9 1 file changed, 6 insertions(+)
11 diff --git a/src/qt_gui/check_update.cpp b/src/qt_gui/check_update.cpp
12 index ca6009ca..e3b14d5d 100644
13 --- a/src/qt_gui/check_update.cpp
14 +++ b/src/qt_gui/check_update.cpp
15 @@ -201,6 +201,12 @@ void CheckUpdate::setupUI(const QString& downloadUrl, const QString& latestDate,
16 noButton->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
17 bottomLayout->addWidget(autoUpdateCheckBox);
19 + yesButton->setVisible(false);
20 + yesButton->setEnabled(false);
21 + QString updateDisabledText = QStringLiteral("[Nix] Auto-updating has been disabled in this package.");
22 + QLabel* updateDisabledLabel = new QLabel(updateDisabledText, this);
23 + layout->addWidget(updateDisabledLabel);
25 QSpacerItem* spacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
26 bottomLayout->addItem(spacer);
28 --
29 2.44.1