mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: 修复任务栏概率性出现启动后声音插件无图标的问题
原因为系统启动时,任务栏收到com.deepin.daemon.Audio两次启动成功的信号 导致任务栏的声音模块连续初始化两次,销毁了第一次的图标信息 代码中做避免重复初始化处理 Log: 修复任务栏概率性出现启动后声音插件无图标的问题 Influence: 任务栏启动后声音插件的图标 Task: https://pms.uniontech.com/zentao/task-view-94732.html Change-Id: I84069e5afa51b278e5119f6650a3a3e3634ed0fc
This commit is contained in:
parent
1d21dc6349
commit
f5cf070f56
@ -48,6 +48,9 @@ void SoundPlugin::init(PluginProxyInterface *proxyInter)
|
||||
{
|
||||
m_proxyInter = proxyInter;
|
||||
|
||||
if (m_soundItem)
|
||||
return;
|
||||
|
||||
m_soundItem.reset(new SoundItem);
|
||||
|
||||
if (!pluginIsDisable())
|
||||
|
Loading…
x
Reference in New Issue
Block a user