mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix(tray): Adding a keyboard layout for the first time will crash
https://pms.deepin.cn/index.php?m=task&f=view&taskID=5131
This commit is contained in:
parent
2e4fcd852e
commit
0a71b340ac
@ -233,6 +233,10 @@ void IndicatorTray::textPropertyChanged(const QDBusMessage &message)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!d->indicatorTrayWidget) {
|
||||
d->init();
|
||||
}
|
||||
|
||||
d->indicatorTrayWidget->setText(value.toByteArray());
|
||||
});
|
||||
}
|
||||
@ -247,6 +251,10 @@ void IndicatorTray::iconPropertyChanged(const QDBusMessage &message)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!d->indicatorTrayWidget) {
|
||||
d->init();
|
||||
}
|
||||
|
||||
d->indicatorTrayWidget->setPixmapData(value.toByteArray());
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user