mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
Revert "fix: 修复蓝牙连接成功后动画显示问题"
This reverts commit 09fc6e7b Change-Id: I9ce274ae00533b937f78ba1b879dba45e952b677
This commit is contained in:
parent
09fc6e7b1b
commit
ef085a0aaf
@ -106,21 +106,17 @@ void BluetoothDeviceItem::updateIconTheme(DGuiApplicationHelper::ColorType type)
|
||||
void BluetoothDeviceItem::updateDeviceState(Device::State state)
|
||||
{
|
||||
m_labelAction->setText(m_device->alias());
|
||||
|
||||
if (state == Device::StateAvailable) {
|
||||
m_loading->start();
|
||||
m_loading->setVisible(true);
|
||||
m_stateAction->setVisible(true);
|
||||
m_connAction->setVisible(false);
|
||||
} else if (state == Device::StateConnected) {
|
||||
m_loading->stop();
|
||||
m_loading->setVisible(false);
|
||||
m_stateAction->setVisible(false);
|
||||
m_connAction->setVisible(true);
|
||||
emit requestTopDeviceItem(m_standarditem);
|
||||
} else {
|
||||
m_loading->stop();
|
||||
m_loading->setVisible(false);
|
||||
m_stateAction->setVisible(false);
|
||||
m_connAction->setVisible(false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user