Skip to content

Commit

Permalink
feat: hide quick panel at invoking action
Browse files Browse the repository at this point in the history
hide quick panel at invoking action .

Log:

Task: https://pms.uniontech.com/task-view-305337.html
  • Loading branch information
Clauszy committed Nov 22, 2023
1 parent fb14449 commit 3c094c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/grand-search-dock-plugin/ddegrandsearchdockplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ void DdeGrandSearchDockPlugin::pluginStateSwitched()

const QString DdeGrandSearchDockPlugin::itemCommand(const QString &itemKey)
{
if (GrandSearchPlugin == itemKey || itemKey == QUICK_ITEM_KEY)
if (GrandSearchPlugin == itemKey || itemKey == QUICK_ITEM_KEY) {
m_proxyInter->requestSetAppletVisible(this, pluginName(), false);
return m_searchWidget->itemCommand(itemKey);
}

return QString();
}
Expand Down Expand Up @@ -177,6 +179,8 @@ void DdeGrandSearchDockPlugin::invokedMenuItem(const QString &itemKey, const QSt
if (menuId == MenuOpenSetting) {
QProcess::startDetached("dde-grand-search", QStringList() << "--setting");
}

m_proxyInter->requestSetAppletVisible(this, pluginName(), false);
}

void DdeGrandSearchDockPlugin::onGsettingsChanged(const QString &key)
Expand Down

0 comments on commit 3c094c9

Please sign in to comment.