added welcome dialog

This commit is contained in:
itsmattkc
2021-07-23 17:46:42 -07:00
parent 9e183779f3
commit d0e7258301
7 changed files with 84 additions and 13 deletions
+11
View File
@@ -29,6 +29,7 @@
#include <QOffscreenSurface>
#endif
#include "dialog/about/about.h"
#include "mainmenu.h"
#include "mainstatusbar.h"
@@ -486,6 +487,14 @@ void MainWindow::ProjectPanelSelectionChanged(const QVector<Node *> &nodes)
}
}
void MainWindow::ShowWelcomeDialog()
{
if (Config::Current()[QStringLiteral("ShowWelcomeDialog")].toBool()) {
AboutDialog ad(true, this);
ad.exec();
}
}
#ifdef Q_OS_LINUX
void MainWindow::ShowNouveauWarning()
{
@@ -844,6 +853,8 @@ void MainWindow::showEvent(QShowEvent *e)
}
#endif
QMetaObject::invokeMethod(this, "ShowWelcomeDialog", Qt::QueuedConnection);
first_show_ = false;
}
}