Automatically show Start page the very first time when activating the Start workbench
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user