Skip to content

Commit

Permalink
feat: make initial wizard skip to end when migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
nullobsi committed Aug 7, 2024
1 parent 740089b commit fcba26f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gui/initialsettingswizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,20 @@ void InitialSettingsWizard::reject()
QDialog::reject();
}

int InitialSettingsWizard::nextId() const {
switch(currentId()) {
case PAGE_INTRO:
if (migrateDataBox->isChecked()) {
return PAGE_END;
}
return PAGE_CONNECTION;
case PAGE_CONNECTION:
return PAGE_COVERS;
case PAGE_COVERS:
return PAGE_END;
default:
return -1;
}
}

#include "moc_initialsettingswizard.cpp"
1 change: 1 addition & 0 deletions gui/initialsettingswizard.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ private Q_SLOTS:
#endif

private:
int nextId() const override;
#ifdef Avahi_FOUND
QPushButton* discoveryButton;
#endif
Expand Down

0 comments on commit fcba26f

Please sign in to comment.