diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-10-25 16:18:19 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-10-25 16:18:19 +0100 |
| commit | cca709baaeb415d4cc600d3274169c2db7c90bd9 (patch) | |
| tree | 3f3e3545efca13f5ef2fab0f90689b83261d73cb /src/organizercore.cpp | |
| parent | 4e11faf1c8b19013da6d5686f79b67c1c746653b (diff) | |
Rename IOrganizer::refreshModList -> refresh.
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp index 989fdcc2..ac485c91 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -678,7 +678,7 @@ bool OrganizerCore::removeMod(MOBase::IModInterface *mod) void OrganizerCore::modDataChanged(MOBase::IModInterface *) { - refreshModList(false); + refresh(false); } QVariant OrganizerCore::pluginSetting(const QString &pluginName, @@ -740,7 +740,7 @@ MOBase::IModInterface *OrganizerCore::installMod(const QString &fileName, if (result == IPluginInstaller::RESULT_SUCCESS) { MessageDialog::showMessage(tr("Installation successful"), qApp->activeWindow()); - refreshModList(); + refresh(); int modIndex = ModInfo::getIndex(modName); if (modIndex != UINT_MAX) { @@ -776,7 +776,7 @@ MOBase::IModInterface *OrganizerCore::installMod(const QString &fileName, "If this was prior to a FOMOD setup, this warning may be ignored. " "However, if this was during installation, the mod will likely be missing files."), QMessageBox::Ok); - refreshModList(); + refresh(); } } return nullptr; @@ -822,7 +822,7 @@ void OrganizerCore::installDownload(int index) if (result == IPluginInstaller::RESULT_SUCCESS) { MessageDialog::showMessage(tr("Installation successful"), qApp->activeWindow()); - refreshModList(); + refresh(); int modIndex = ModInfo::getIndex(modName); if (modIndex != UINT_MAX) { @@ -855,7 +855,7 @@ void OrganizerCore::installDownload(int index) "If this was prior to a FOMOD setup, this warning may be ignored. " "However, if this was during installation, the mod will likely be missing files."), QMessageBox::Ok); - refreshModList(); + refresh(); } } } catch (const std::exception &e) { @@ -1147,7 +1147,7 @@ bool OrganizerCore::onPluginSettingChanged(std::function<void(QString const&, co return m_PluginSettingChanged.connect(func).connected(); } -void OrganizerCore::refreshModList(bool saveChanges) +void OrganizerCore::refresh(bool saveChanges) { // don't lose changes! if (saveChanges) { @@ -1168,6 +1168,8 @@ void OrganizerCore::refreshModList(bool saveChanges) void OrganizerCore::refreshESPList(bool force) { + TimeThis tt("OrganizerCore::refreshESPList()"); + if (m_DirectoryUpdate) { // don't mess up the esp list if we're currently updating the directory // structure @@ -1526,7 +1528,7 @@ void OrganizerCore::directory_refreshed() void OrganizerCore::profileRefresh() { - refreshModList(); + refresh(); } void OrganizerCore::modStatusChanged(unsigned int index) |
