diff --git a/startupwidget.cpp b/startupwidget.cpp index af52fc2..b74b181 100644 --- a/startupwidget.cpp +++ b/startupwidget.cpp @@ -15,7 +15,8 @@ StartupWidget::StartupWidget(const QString &path) : QWidget() // Startup behaviors connect(this, &StartupWidget::askForUrl, &StartupWidget::interact); connect(this, &StartupWidget::launchDirectly, &StartupWidget::launch); - connect(this, &StartupWidget::loading, &StartupWidget::initializeLoadingWindow); + connect(this, &StartupWidget::loading, loadingWidget, &LoadingWidget::show); + // Web engine behaviors connect(view, &QWebEngineView::titleChanged, &QWebEngineView::setWindowTitle); connect(view, &QWebEngineView::iconChanged, &QWebEngineView::setWindowIcon); @@ -64,10 +65,6 @@ void StartupWidget::interact() { this->show(); } -void StartupWidget::initializeLoadingWindow() { - loadingWidget->show(); -} - void StartupWidget::updateStartupButtonStatus() { startupButton->setEnabled(entry->text().trimmed().length() > 0); } diff --git a/startupwidget.hpp b/startupwidget.hpp index ed6431a..225ea54 100644 --- a/startupwidget.hpp +++ b/startupwidget.hpp @@ -36,7 +36,6 @@ public slots: private slots: void launch(const QString &path); void interact(); - void initializeLoadingWindow(); void updateStartupButtonStatus();