Automatically show Start page the very first time when activating the Start workbench

This commit is contained in:
wmayer
2019-09-12 00:17:34 +02:00
parent 5a542d3192
commit f312878452
3 changed files with 16 additions and 54 deletions

View File

@@ -61,6 +61,16 @@ StartGui::Workbench::~Workbench()
}
void StartGui::Workbench::activated()
{
// Automatically display the StartPage only the very first time
static bool first = true;
if (first) {
loadStartPage();
first = false;
}
}
void StartGui::Workbench::loadStartPage()
{
// Ensure that we don't open the Start page multiple times
QString title = QCoreApplication::translate("Workbench", "Start page");