fix(bluetooth): 任务栏蓝牙开关关闭刷新按钮隐藏

关闭任务栏蓝牙菜单,停止扫描蓝牙设备,刷新图标隐藏

Log: 关闭蓝牙开关概率性出现刷新按钮还在刷新的情况
Bug: https://pms.uniontech.com/zentao/bug-view-44902.html
Change-Id: I88b76d45628cc869ab8a518f147b82a1961192d7
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/3137
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: niecheng <niecheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
This commit is contained in:
yexin 2020-09-01 09:34:46 +08:00
parent 47535d2dfa
commit 84cbc4454a

View File

@ -76,6 +76,7 @@ SwitchItem::SwitchItem(QWidget *parent)
connect(m_switchBtn, &DSwitchButton::toggled, [&](bool change) {
m_checkState = change;
m_loadingIndicator->setVisible(change);
emit checkedChanged(change);
});
connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, themeChanged);