Mercurial > minori
comparison src/gui/window.cc @ 279:657fda1b9cac
*: clean up enums
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Fri, 19 Apr 2024 13:24:06 -0400 |
| parents | f31305b9f60a |
| children | 9a88e1725fd2 |
comparison
equal
deleted
inserted
replaced
| 274:f6a756c19bfb | 279:657fda1b9cac |
|---|---|
| 482 void MainWindow::SetActivePage(QWidget* page) { | 482 void MainWindow::SetActivePage(QWidget* page) { |
| 483 this->setCentralWidget(page); | 483 this->setCentralWidget(page); |
| 484 } | 484 } |
| 485 | 485 |
| 486 void MainWindow::AsyncSynchronize(QAction* action, QStackedWidget* stack) { | 486 void MainWindow::AsyncSynchronize(QAction* action, QStackedWidget* stack) { |
| 487 if (session.config.service == Anime::Services::NONE) { | 487 if (session.config.service == Anime::Service::None) { |
| 488 QMessageBox msg; | 488 QMessageBox msg; |
| 489 msg.setWindowTitle(tr("Error synchronizing with service!")); | 489 msg.setWindowTitle(tr("Error synchronizing with service!")); |
| 490 msg.setText(tr("It seems you haven't yet selected a service to use.")); | 490 msg.setText(tr("It seems you haven't yet selected a service to use.")); |
| 491 msg.setInformativeText(tr("Would you like to select one now?")); | 491 msg.setInformativeText(tr("Would you like to select one now?")); |
| 492 msg.setStandardButtons(QMessageBox::Yes | QMessageBox::No); | 492 msg.setStandardButtons(QMessageBox::Yes | QMessageBox::No); |
