mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
feat: 修改屏幕键盘和回收站默认在任务栏不显示 (#726)
修改屏幕键盘和回收站默认在任务栏不显示 Log: 修改屏幕键盘和回收站默认在任务栏不显示 Task: https://pms.uniontech.com/task-view-212929.html Influence: 屏幕键盘和回收站默认在任务栏不显示
This commit is contained in:
parent
e011143bfa
commit
b4cd7f51f1
@ -68,7 +68,7 @@ void OnboardPlugin::pluginStateSwitched()
|
|||||||
|
|
||||||
bool OnboardPlugin::pluginIsDisable()
|
bool OnboardPlugin::pluginIsDisable()
|
||||||
{
|
{
|
||||||
return !(m_proxyInter->getValue(this, PLUGIN_STATE_KEY, true).toBool());
|
return !(m_proxyInter->getValue(this, PLUGIN_STATE_KEY, false).toBool());
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString OnboardPlugin::itemCommand(const QString &itemKey)
|
const QString OnboardPlugin::itemCommand(const QString &itemKey)
|
||||||
@ -180,8 +180,7 @@ void OnboardPlugin::loadPlugin()
|
|||||||
|
|
||||||
void OnboardPlugin::refreshPluginItemsVisible()
|
void OnboardPlugin::refreshPluginItemsVisible()
|
||||||
{
|
{
|
||||||
if (pluginIsDisable())
|
if (pluginIsDisable()) {
|
||||||
{
|
|
||||||
m_proxyInter->itemRemoved(this, pluginName());
|
m_proxyInter->itemRemoved(this, pluginName());
|
||||||
} else {
|
} else {
|
||||||
if (!m_pluginLoaded) {
|
if (!m_pluginLoaded) {
|
||||||
|
@ -121,7 +121,7 @@ void TrashPlugin::invokedMenuItem(const QString &itemKey, const QString &menuId,
|
|||||||
|
|
||||||
bool TrashPlugin::pluginIsDisable()
|
bool TrashPlugin::pluginIsDisable()
|
||||||
{
|
{
|
||||||
return !m_proxyInter->getValue(this, PLUGIN_STATE_KEY, true).toBool();
|
return !m_proxyInter->getValue(this, PLUGIN_STATE_KEY, false).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrashPlugin::pluginStateSwitched()
|
void TrashPlugin::pluginStateSwitched()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user