Skip to content

Commit

Permalink
Update title on credential received.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 31, 2024
1 parent 57cb241 commit 3605f84
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 115 deletions.
12 changes: 4 additions & 8 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,10 @@ MainWindow::MainWindow(Settings& settings, OrganizerCore& organizerCore,
connect(&NexusInterface::instance(), SIGNAL(needLogin()), &m_OrganizerCore,
SLOT(nexusApi()));

connect(&NexusInterface::instance(),
SIGNAL(requestsChanged(const APIStats&, const APIUserAccount&)), this,
SLOT(onRequestsChanged(const APIStats&, const APIUserAccount&)));
connect(NexusInterface::instance().getAccessManager(),
&NXMAccessManager::credentialsReceived, this, &MainWindow::updateWindowTitle);
connect(&NexusInterface::instance(), &NexusInterface::requestsChanged, ui->statusBar,
&StatusBar::setAPI);

connect(&TutorialManager::instance(), SIGNAL(windowTutorialFinished(QString)), this,
SLOT(windowTutorialFinished(QString)));
Expand Down Expand Up @@ -650,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
Expand Down
2 changes: 0 additions & 2 deletions src/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@ private slots:
void nxmRequestFailed(QString gameName, int modID, int fileID, QVariant userData,
int requestID, int errorCode, const QString& errorString);

void onRequestsChanged(const APIStats& stats, const APIUserAccount& user);

void modRenamed(const QString& oldName, const QString& newName);
void modRemoved(const QString& fileName);

Expand Down
Loading

0 comments on commit 3605f84

Please sign in to comment.