Skip to content

Commit

Permalink
Merge pull request #1 from chardon55/dev_refactoring
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
chardoncs authored Jun 9, 2023
2 parents e19d984 + bf13861 commit 7336aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions startupwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -64,10 +65,6 @@ void StartupWidget::interact() {
this->show();
}

void StartupWidget::initializeLoadingWindow() {
loadingWidget->show();
}

void StartupWidget::updateStartupButtonStatus() {
startupButton->setEnabled(entry->text().trimmed().length() > 0);
}
Expand Down
1 change: 0 additions & 1 deletion startupwidget.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public slots:
private slots:
void launch(const QString &path);
void interact();
void initializeLoadingWindow();

void updateStartupButtonStatus();

Expand Down

0 comments on commit 7336aa5

Please sign in to comment.