Skip to content

Commit 45c017d

Browse files
authored
Merge pull request #1959 from ModOrganizer2/category_alternate_source
Use primary game source for categories if defined
2 parents b3d2747 + b350afe commit 45c017d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/mainwindow.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,8 +2842,14 @@ void MainWindow::refreshNexusCategories(CategoriesDialog* dialog)
28422842
{
28432843
NexusInterface& nexus = NexusInterface::instance();
28442844
nexus.setPluginContainer(&m_PluginContainer);
2845-
nexus.requestGameInfo(Settings::instance().game().plugin()->gameShortName(), dialog,
2846-
QVariant(), QString());
2845+
if (!Settings::instance().game().plugin()->primarySources().isEmpty()) {
2846+
nexus.requestGameInfo(
2847+
Settings::instance().game().plugin()->primarySources().first(), dialog,
2848+
QVariant(), QString());
2849+
} else {
2850+
nexus.requestGameInfo(Settings::instance().game().plugin()->gameShortName(), dialog,
2851+
QVariant(), QString());
2852+
}
28472853
}
28482854

28492855
void MainWindow::categoriesSaved()

0 commit comments

Comments
 (0)