diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2024-08-01 10:40:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-01 10:40:44 +0200 |
| commit | acd201157d85bb2347e891040e46fd1572bedcc3 (patch) | |
| tree | 7856d03e7502ab0a0c0e27a53b44b874a1b809b3 /src/mainwindow.cpp | |
| parent | f11925ab88cd5881c7e5dd35c40744d95b3eab2d (diff) | |
Move slot connections to avoid issue when starting MO2 to download a NXM link. (#2082)
* Move slot connections to avoid issue when starting MO2 to download a NXM link.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b14a14a1..f346a3e4 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -407,16 +407,9 @@ MainWindow::MainWindow(Settings& settings, OrganizerCore& organizerCore, SLOT(nexusApi())); connect(NexusInterface::instance().getAccessManager(), - SIGNAL(credentialsReceived(const APIUserAccount&)), this, - SLOT(updateWindowTitle(const APIUserAccount&))); - - connect(NexusInterface::instance().getAccessManager(), - SIGNAL(credentialsReceived(const APIUserAccount&)), - &NexusInterface::instance(), SLOT(setUserAccount(const APIUserAccount&))); - - connect(&NexusInterface::instance(), - SIGNAL(requestsChanged(const APIStats&, const APIUserAccount&)), this, - SLOT(onRequestsChanged(const APIStats&, const APIUserAccount&))); + &NXMAccessManager::credentialsReceived, this, &MainWindow::updateWindowTitle); + connect(&NexusInterface::instance(), &NexusInterface::requestsChanged, ui->statusBar, + &StatusBar::setAPI); connect(&TutorialManager::instance(), SIGNAL(windowTutorialFinished(QString)), this, SLOT(windowTutorialFinished(QString))); @@ -658,11 +651,6 @@ void MainWindow::updateWindowTitle(const APIUserAccount& user) this->setWindowTitle(title); } -void MainWindow::onRequestsChanged(const APIStats& stats, const APIUserAccount& user) -{ - ui->statusBar->setAPI(stats, user); -} - void MainWindow::resizeLists(bool pluginListCustom) { // ensure the columns aren't so small you can't see them any more |
