diff options
| author | Silarn <jrim@rimpo.org> | 2019-01-31 17:16:17 -0600 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2019-02-18 21:29:27 -0600 |
| commit | d08b836265c3f2c44041cb4d6da37183245b9a0e (patch) | |
| tree | 0293875a9e86d4055aaf96cc0f2935a56c237e32 /src/mainwindow.cpp | |
| parent | b7d2a608d8c0364d76950bc908c53203e3f467ff (diff) | |
Fix various issues when not having a stored API key
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9368192f..3a341298 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3996,10 +3996,8 @@ void MainWindow::checkModsForUpdates() if (m_OrganizerCore.settings().getNexusApiKey(apiKey)) { m_OrganizerCore.doAfterLogin([this] () { this->checkModsForUpdates(); }); NexusInterface::instance(&m_PluginContainer)->getAccessManager()->apiCheck(apiKey); - } else { // otherwise there will be no endorsement info - MessageDialog::showMessage(tr("Not logged in, endorsement information will be wrong"), - this, true); - m_ModsToUpdate = ModInfo::checkAllForUpdate(&m_PluginContainer, this); + } else { + qWarning("You are not currently authenticated with Nexus. Please do so under Settings -> Nexus."); } } @@ -5457,12 +5455,10 @@ void MainWindow::modUpdateCheck() } else { QString apiKey; if (m_OrganizerCore.settings().getNexusApiKey(apiKey)) { - m_OrganizerCore.doAfterLogin([this]() { this->checkModsForUpdates(); }); + m_OrganizerCore.doAfterLogin([this]() { this->modUpdateCheck(); }); NexusInterface::instance(&m_PluginContainer)->getAccessManager()->apiCheck(apiKey); - } else { // otherwise there will be no endorsement info - MessageDialog::showMessage(tr("Not logged in, endorsement information will be wrong"), - this, true); - m_ModsToUpdate += ModInfo::autoUpdateCheck(&m_PluginContainer, this); + } else { + qWarning("You are not currently authenticated with Nexus. Please do so under Settings -> Nexus."); } } } |
