Commit f303943a authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Eric Armbruster
Browse files

[WelcomeView] Fix the text of the recent items label

Always show "Recent Documents and Projects" for Kate, since the list of recent items contains both documents and projects, even if the Projects plugin is disabled.
parent 6f2395a8
Pipeline #248814 canceled with stage
in 3 minutes and 11 seconds
......@@ -53,6 +53,8 @@ WelcomeView::WelcomeView(KateViewManager *viewManager, QWidget *parent)
labelDescription->setText(aboutData.shortDescription());
labelIcon->setPixmap(aboutData.programLogo().value<QIcon>().pixmap(KIconLoader::SizeEnormous));
labelRecentItems->setText(KateApp::isKate() ? i18n("Recent Documents and Projects") : i18n("Recent Documents"));
m_placeholderRecentFiles = new Placeholder;
m_placeholderRecentFiles->setText(i18n("No recent files"));
......@@ -184,10 +186,8 @@ void WelcomeView::onPluginViewChanged(const QString &pluginName)
if (projectPluginView) {
connect(buttonOpenFolder, SIGNAL(clicked()), projectPluginView, SLOT(openDirectoryOrProject()));
buttonOpenFolder->show();
labelRecentItems->setText(i18n("Recent Documents and Projects"));
} else {
buttonOpenFolder->hide();
labelRecentItems->setText(i18n("Recent Documents"));
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment