diff options
Diffstat (limited to 'ZeroTierUI/mainwindow.cpp')
| -rw-r--r-- | ZeroTierUI/mainwindow.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ZeroTierUI/mainwindow.cpp b/ZeroTierUI/mainwindow.cpp index ffb27af1..c03a95d7 100644 --- a/ZeroTierUI/mainwindow.cpp +++ b/ZeroTierUI/mainwindow.cpp @@ -51,6 +51,7 @@ #include "aboutwindow.h" #include "networkwidget.h" #include "ui_mainwindow.h" +#include "ui_quickstartdialog.h" #ifdef __APPLE__ #include <stdio.h> @@ -144,6 +145,13 @@ void MainWindow::timerEvent(QTimerEvent *event) // event can be null since code if (this->firstTimerTick) { this->firstTimerTick = false; this->killTimer(this->pollServiceTimerId); + + if (!settings->value("shown_quickStart",false).toBool()) { + on_actionQuick_Start_triggered(); + settings->setValue("shown_quickStart",true); + settings->sync(); + } + this->pollServiceTimerId = this->startTimer(1500); } @@ -387,3 +395,12 @@ void MainWindow::on_addressButton_clicked() { QApplication::clipboard()->setText(this->myAddress); } + +void MainWindow::on_actionQuick_Start_triggered() +{ + Ui::QuickstartDialog qd; + QDialog *qdd = new QDialog(this); + qd.setupUi(qdd); + qdd->setModal(false); + qdd->show(); +} |
