summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-23 19:00:41 -0500
committerJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-23 19:00:41 -0500
commite22331fa0305d8a0a2b8b6d37203dac1ed3524e9 (patch)
tree3231affb718494c342fc6197bae2b784fde9fd21 /src/organizercore.cpp
parent31a85a3db5fcb34b36dc6ed6f56a351a5dcb319a (diff)
Restructure category refresh action
- Remove plugins class - Route signals to run Nexus API call from MainWindow - Pass Dialog instance to route response data - Revert CategoryFactory::instance to return reference
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 3781a4e1..dda731ba 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -804,7 +804,7 @@ OrganizerCore::doInstall(const QString& archivePath, GuessedValue<QString> modNa
return {modIndex, modInfo};
} else {
if (result.result() == MOBase::IPluginInstaller::RESULT_CATEGORYREQUESTED) {
- CategoriesDialog dialog(&pluginContainer(), qApp->activeWindow());
+ CategoriesDialog dialog(qApp->activeWindow());
if (dialog.exec() == QDialog::Accepted) {
dialog.commitChanges();
@@ -831,6 +831,7 @@ OrganizerCore::doInstall(const QString& archivePath, GuessedValue<QString> modNa
ModInfo::Ptr OrganizerCore::installDownload(int index, int priority)
{
+ ScopedDisableDirWatcher scopedDirwatcher(&m_DownloadManager);
try {
QString fileName = m_DownloadManager.getFilePath(index);
QString gameName = m_DownloadManager.getGameName(index);