feat: 修改屏幕键盘和回收站默认在任务栏不显示 (#726)

修改屏幕键盘和回收站默认在任务栏不显示

Log: 修改屏幕键盘和回收站默认在任务栏不显示
Task: https://pms.uniontech.com/task-view-212929.html
Influence: 屏幕键盘和回收站默认在任务栏不显示
This commit is contained in:
chenjun 2022-11-28 15:17:07 +08:00 committed by GitHub
parent e011143bfa
commit b4cd7f51f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -68,7 +68,7 @@ void OnboardPlugin::pluginStateSwitched()
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)
@ -180,8 +180,7 @@ void OnboardPlugin::loadPlugin()
void OnboardPlugin::refreshPluginItemsVisible()
{
if (pluginIsDisable())
{
if (pluginIsDisable()) {
m_proxyInter->itemRemoved(this, pluginName());
} else {
if (!m_pluginLoaded) {

View File

@ -121,7 +121,7 @@ void TrashPlugin::invokedMenuItem(const QString &itemKey, const QString &menuId,
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()