mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
chore(tray): disable tray for local config (#224)
This commit is contained in:
parent
c5795ecebc
commit
42e1cf492a
@ -141,7 +141,7 @@ void DockPluginsController::loadLocalPlugins() {
|
||||
}
|
||||
|
||||
void DockPluginsController::loadSystemPlugins() {
|
||||
QString pluginsDir("../plugins");
|
||||
QString pluginsDir(qApp->applicationDirPath() + "/../plugins");
|
||||
if (!QDir(pluginsDir).exists()) {
|
||||
pluginsDir = "/usr/lib/dde-dock/plugins";
|
||||
}
|
||||
|
@ -99,6 +99,13 @@ void TrayPlugin::init(PluginProxyInterface *proxyInter)
|
||||
|
||||
bool TrayPlugin::pluginIsDisable()
|
||||
{
|
||||
// NOTE(justforlxz): local config
|
||||
QSettings enableSetting("deepin", "dde-dock");
|
||||
enableSetting.beginGroup("tray");
|
||||
if (!enableSetting.value("enable", true).toBool()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return !m_proxyInter->getValue(this, PLUGIN_ENABLED_KEY, true).toBool();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user