ukui-bluetooth/0004-fix-repair-bug.patch
2021-11-01 15:30:58 +08:00

31 lines
952 B
Diff

From 1eed1d15318d93969903cf03ada0dec6633c6f43 Mon Sep 17 00:00:00 2001
From: tanyulong <tanyulong@kylinos.cn>
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