From b350afee9e7ab99287cdb6052a140e479e7ab68c Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Thu, 28 Dec 2023 03:26:39 -0600 Subject: [PATCH] Use primary game source for categories if defined --- src/mainwindow.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index eb78eb96e..2c62e7319 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2842,8 +2842,14 @@ void MainWindow::refreshNexusCategories(CategoriesDialog* dialog) { NexusInterface& nexus = NexusInterface::instance(); nexus.setPluginContainer(&m_PluginContainer); - nexus.requestGameInfo(Settings::instance().game().plugin()->gameShortName(), dialog, - QVariant(), QString()); + if (!Settings::instance().game().plugin()->primarySources().isEmpty()) { + nexus.requestGameInfo( + Settings::instance().game().plugin()->primarySources().first(), dialog, + QVariant(), QString()); + } else { + nexus.requestGameInfo(Settings::instance().game().plugin()->gameShortName(), dialog, + QVariant(), QString()); + } } void MainWindow::categoriesSaved()