diff --git a/0004-fix-repair-bug.patch b/0004-fix-repair-bug.patch new file mode 100644 index 0000000..7932fe4 --- /dev/null +++ b/0004-fix-repair-bug.patch @@ -0,0 +1,30 @@ +From 1eed1d15318d93969903cf03ada0dec6633c6f43 Mon Sep 17 00:00:00 2001 +From: tanyulong +Date: Mon, 1 Nov 2021 10:40:37 +0800 +Subject: [PATCH] fix repair bug + +--- + ukui-bluetooth/main/featureswidget.cpp | 7 +------ + 1 file changed, 1 insertion(+), 6 deletions(-) + +diff --git a/ukui-bluetooth/main/featureswidget.cpp b/ukui-bluetooth/main/featureswidget.cpp +index ff3f623..171506e 100644 +--- a/ukui-bluetooth/main/featureswidget.cpp ++++ b/ukui-bluetooth/main/featureswidget.cpp +@@ -95,12 +95,7 @@ FeaturesWidget::FeaturesWidget(QWidget *parent) + // } + // } + +- bool value; +- if(value != settings->get("switch").toBool()){ +- Turn_on_or_off_bluetooth(value); +- } +- if (value = settings->get("switch").toBool() ) +- ++ Turn_on_or_off_bluetooth(settings->get("switch").toBool()); + + if(File_save_path.isEmpty()){ + settings->set("file-save-path",QVariant::fromValue(QDir::homePath())); +-- +2.30.0 + diff --git a/ukui-bluetooth.spec b/ukui-bluetooth.spec index 120b83c..2ba1d8b 100644 --- a/ukui-bluetooth.spec +++ b/ukui-bluetooth.spec @@ -2,7 +2,7 @@ Name: ukui-bluetooth Version: 1.0.0 -Release: 4 +Release: 5 Summary: Advanced ukui bluetooth License: GPLv2+ URL: http://www.ukui.org @@ -11,6 +11,7 @@ Source0: %{name}-%{version}.tar.gz patch0: 0001-fix-Bluetooth-pulled-up-by-the-session-manager-and-exits-abnormally.patch patch1: 0002-fix-ukui-bluetooth-will-have-a-segfault-when-times-out.patch patch2: 0003-fix-restart-the-system-Bluetooth-core-dump.patch +patch3: 0004-fix-repair-bug.patch BuildRequires: gsettings-qt-devel BuildRequires: glib2-devel @@ -42,6 +43,7 @@ Simple bluetooth tool for ukui desktop environment %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build mkdir build && cd build @@ -77,6 +79,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Nov 1 2021 tanyulong - 1.0.0-5 +- add patch: 0004-fix-repair-bug.patch + * Mon Nov 1 2021 tanyulong - 1.0.0-4 - After using rfkill to restart the soft connection, restart the system Bluetooth core dump