summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2021-02-24 04:57:54 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2021-02-24 04:57:54 -0500
commitd4fc7c3de156743b3e23a566f518583a96467ade (patch)
treebf243911f6f05c63feebb19006e49194f4347542 /src
parent8decb9df6831a2b953b122cd509361eb1539e84e (diff)
emit modInfoDisplayed, it's required by the tutorial
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp2
-rw-r--r--src/mainwindow.h3
-rw-r--r--src/modlistviewactions.cpp1
-rw-r--r--src/modlistviewactions.h4
4 files changed, 10 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9f1ae7b6..64ed6781 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -512,6 +512,8 @@ void MainWindow::setupModList()
connect(&ui->modList->actions(), &ModListViewActions::overwriteCleared, [=]() { scheduleCheckForProblems(); });
connect(&ui->modList->actions(), &ModListViewActions::originModified, this, &MainWindow::originModified);
+ connect(&ui->modList->actions(), &ModListViewActions::modInfoDisplayed, this, &MainWindow::modInfoDisplayed);
+
connect(m_OrganizerCore.modList(), &ModList::modPrioritiesChanged, [&]() { m_ArchiveListWriter.write(); });
}
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 4f7a0962..7afd954a 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -143,6 +143,9 @@ public slots:
void refresherProgress(const DirectoryRefreshProgress* p);
signals:
+ // emitted after the information dialog has been closed, used by tutorials
+ //
+ void modInfoDisplayed();
/**
* @brief emitted when the selected style changes
diff --git a/src/modlistviewactions.cpp b/src/modlistviewactions.cpp
index 9d4be554..9e6e0397 100644
--- a/src/modlistviewactions.cpp
+++ b/src/modlistviewactions.cpp
@@ -520,6 +520,7 @@ void ModListViewActions::displayModInformation(ModInfo::Ptr modInfo, unsigned in
modInfo->saveMeta();
m_core.modList()->modInfoChanged(modInfo);
+ emit modInfoDisplayed();
}
if (m_core.currentProfile()->modEnabled(modIndex) && !modInfo->isForeign()) {
diff --git a/src/modlistviewactions.h b/src/modlistviewactions.h
index 8de9ad38..de7bdaba 100644
--- a/src/modlistviewactions.h
+++ b/src/modlistviewactions.h
@@ -138,6 +138,10 @@ signals:
//
void originModified(int originId) const;
+ // emitted when the mod info dialog has been shown and closed
+ //
+ void modInfoDisplayed() const;
+
private:
// find the priority where to install or create a mod for the