fix(sound): plugins config file locate error

Change-Id: Idc36fab7cb8a4dac4ec2f0c67cc4d1dd6ebb8ee6
This commit is contained in:
石博文 2017-10-26 16:47:48 +08:00
parent e4db63bc08
commit 34ce1bdd10
Notes: Deepin Code Review 2017-10-26 17:30:05 +08:00
Verified+1: Anonymous Coward #1000004
Verified+1: <zhaofangfang@linuxdeepin.com>
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Thu, 26 Oct 2017 17:30:05 +0800
Reviewed-on: https://cr.deepin.io/27537
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -25,6 +25,7 @@
SoundPlugin::SoundPlugin(QObject *parent)
: QObject(parent),
m_settings("deepin", "dde-dock-sound"),
m_soundItem(nullptr)
{
@ -47,7 +48,7 @@ void SoundPlugin::init(PluginProxyInterface *proxyInter)
m_soundItem = new SoundItem;
connect(m_soundItem, &SoundItem::requestContextMenu, [this] {m_proxyInter->requestContextMenu(this, QString());});
if (m_settings.value(STATE_KEY).toBool())
if (m_settings.value(STATE_KEY, true).toBool())
m_proxyInter->itemAdded(this, QString());
}