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:
范朋程 2021-12-10 13:53:56 +08:00
parent 1d21dc6349
commit f5cf070f56

View File

@ -48,6 +48,9 @@ void SoundPlugin::init(PluginProxyInterface *proxyInter)
{
m_proxyInter = proxyInter;
if (m_soundItem)
return;
m_soundItem.reset(new SoundItem);
if (!pluginIsDisable())