plasma: set the search widget label text before showing it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-19 01:46:46 +03:00
parent a92fd69279
commit 6ff89abb0f

View file

@ -567,8 +567,8 @@ void LauncherSearch::prepare()
qDeleteAll(m_launcherwidgets);
m_launcherwidgets.clear();
m_label->setVisible(true);
m_label->setText(i18n("Searching.."));
m_label->setVisible(true);
m_busywidget->setVisible(true);
m_busywidget->setRunning(true);
adjustSize();
@ -588,8 +588,8 @@ void LauncherSearch::slotUpdateLayout()
m_busywidget->setRunning(false);
m_busywidget->setVisible(false);
if (matches.isEmpty()) {
m_label->setVisible(true);
m_label->setText(i18n("No matches found"));
m_label->setVisible(true);
} else {
m_label->setVisible(false);
}