diff --git a/plugins/bluetooth/bluetoothitem.cpp b/plugins/bluetooth/bluetoothitem.cpp index b8670b1de..07c1ab0c0 100644 --- a/plugins/bluetooth/bluetoothitem.cpp +++ b/plugins/bluetooth/bluetoothitem.cpp @@ -56,6 +56,7 @@ BluetoothItem::BluetoothItem(QWidget *parent) connect(m_applet, &BluetoothApplet::deviceStateChanged, [&](const Device::State state) { m_devState = state; refreshIcon(); + refreshTips(); }); connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &BluetoothItem::refreshIcon); connect(m_applet,&BluetoothApplet::noAdapter,this,&BluetoothItem::noAdapter); @@ -223,4 +224,3 @@ void BluetoothItem::paintEvent(QPaintEvent *event) const QRectF &rfp = QRectF(m_iconPixmap.rect()); painter.drawPixmap(rf.center() - rfp.center() / m_iconPixmap.devicePixelRatioF(), m_iconPixmap); } -