void-packages/srcpkgs/RcloneBrowser/patches/do-not-check-for-updates.patch

52 lines
2.1 KiB
Diff

From 2976c391098c83bce55547db0b8c5d70c046fde1 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Fri, 1 Jul 2022 19:32:55 +0200
Subject: [PATCH] do not check for updates
---
src/main_window.cpp | 4 ++--
src/preferences_dialog.cpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main_window.cpp b/src/main_window.cpp
index 3bf6340..41d4f93 100644
--- a/src/main_window.cpp
+++ b/src/main_window.cpp
@@ -527,7 +527,7 @@ void MainWindow::rcloneGetVersion() {
// during first run the key might not exist yet
if (!(settings->contains("Settings/checkRcloneUpdates"))) {
// if checkRcloneUpdates does not exist create new key
- settings->setValue("Settings/checkRcloneUpdates", true);
+ settings->setValue("Settings/checkRcloneUpdates", false);
};
bool checkRcloneUpdates =
@@ -605,7 +605,7 @@ void MainWindow::rcloneGetVersion() {
// during first run the key might not exist yet
if (!(settings->contains("Settings/checkRcloneBrowserUpdates"))) {
// if checkRcloneBrowserUpdates does not exist create new key
- settings->setValue("Settings/checkRcloneBrowserUpdates", true);
+ settings->setValue("Settings/checkRcloneBrowserUpdates", false);
};
bool checkRcloneBrowserUpdates =
diff --git a/src/preferences_dialog.cpp b/src/preferences_dialog.cpp
index 1564621..76eb531 100644
--- a/src/preferences_dialog.cpp
+++ b/src/preferences_dialog.cpp
@@ -94,9 +94,9 @@ PreferencesDialog::PreferencesDialog(QWidget *parent) : QDialog(parent) {
settings->value("Settings/defaultRcloneOptions").toString());
ui.checkRcloneBrowserUpdates->setChecked(
- settings->value("Settings/checkRcloneBrowserUpdates", true).toBool());
+ settings->value("Settings/checkRcloneBrowserUpdates", false).toBool());
ui.checkRcloneUpdates->setChecked(
- settings->value("Settings/checkRcloneUpdates", true).toBool());
+ settings->value("Settings/checkRcloneUpdates", false).toBool());
if (QSystemTrayIcon::isSystemTrayAvailable()) {
ui.alwaysShowInTray->setChecked(
--
2.37.0