- remove upstreamed patches * remove 0569-scale-mirror-pixmap.patch * remove 0961-use-cpp20.patch * remove 0962-fix-cpp20-compatibility.patch * remove 1010-fix-qapp-cast.patch * remove 1017-ffmpeg7.patch - adjust patches to new version * adjust 0955-shortcut-configuration.patch * adjust 9117-disable-software-update.patch - add patch to circumvent some problems on wayland * add 1165-fix-some-wayland-problems.patch - switch from Qt5 to Qt6 OBS-URL: https://build.opensuse.org/package/show/Education/OpenBoard?expand=0&rev=41
42 lines
1.9 KiB
Diff
42 lines
1.9 KiB
Diff
From cc89f09bbc7f464ad79eaa82a74d490d507e4756 Mon Sep 17 00:00:00 2001
|
|
From: letsfindaway <me@letsfindaway.de>
|
|
Date: Wed, 16 Nov 2022 08:31:29 +0100
|
|
Subject: [PATCH] feat: disable software update check
|
|
|
|
- for packages maintained by a Linux distribution,
|
|
a software update check is not relevant
|
|
- disable the check in the settings
|
|
- hide the associated checkbox in the preferences
|
|
---
|
|
resources/etc/OpenBoard.config | 5 ++---
|
|
src/core/UBPreferencesController.cpp | 1 +
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/resources/etc/OpenBoard.config b/resources/etc/OpenBoard.config
|
|
index ce77e232e..a3c8bf04e 100644
|
|
--- a/resources/etc/OpenBoard.config
|
|
+++ b/resources/etc/OpenBoard.config
|
|
@@ -1,8 +1,7 @@
|
|
[App]
|
|
-HideCheckForSoftwareUpdate=false
|
|
+HideCheckForSoftwareUpdate=true
|
|
HideSwapDisplayScreens=true
|
|
-EnableAutomaticSoftwareUpdates=true
|
|
-EnableSoftwareUpdates=true
|
|
+EnableAutomaticSoftwareUpdates=false
|
|
EnableStartupHints=true
|
|
FavoriteToolURIs=openboardtool://openboard/mask, openboardtool://ruler, openboardtool://compass, openboardtool://protractor, openboardtool://triangle, openboardtool://magnifier, openboardtool://cache
|
|
IsInSoftwareUpdateProcess=false
|
|
diff --git a/src/core/UBPreferencesController.cpp b/src/core/UBPreferencesController.cpp
|
|
index ed0e393d8..b67c415c3 100644
|
|
--- a/src/core/UBPreferencesController.cpp
|
|
+++ b/src/core/UBPreferencesController.cpp
|
|
@@ -85,6 +85,7 @@ UBPreferencesController::UBPreferencesController(QWidget *parent)
|
|
mPreferencesWindow = new UBPreferencesDialog(this,parent, Qt::Dialog);
|
|
mPreferencesUI = new Ui::preferencesDialog(); // deleted in destructor
|
|
mPreferencesUI->setupUi(mPreferencesWindow);
|
|
+ mPreferencesUI->softwareUpdateGroupBox->hide(); // disable check for software update
|
|
adjustScreensPreferences();
|
|
|
|
connect(UBApplication::displayManager, &UBDisplayManager::availableScreenCountChanged, this, &UBPreferencesController::adjustScreensPreferences);
|