diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-18 17:22:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-18 17:22:29 -0500 |
| commit | 8c2814c9dc0d92e1ab015cde33eee8dcf880e265 (patch) | |
| tree | 19b00758324fac115b466c51c3fe6f17ccd42375 /src/organizercore.cpp | |
| parent | cfb05d72be19ce0413f1de776eb3b2c150807e83 (diff) | |
| parent | 8e3ab9fb6614e93239662cab8b0bb726285a255e (diff) | |
Merge pull request #1000 from Al12rs/startup_performance
Startup performance
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp index c4f9e081..04d78ca8 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -106,7 +106,7 @@ OrganizerCore::OrganizerCore(Settings &settings) , m_ArchivesInit(false) , m_PluginListsWriter(std::bind(&OrganizerCore::savePluginList, this)) { - m_DownloadManager.setOutputDirectory(m_Settings.paths().downloads()); + m_DownloadManager.setOutputDirectory(m_Settings.paths().downloads(), false); NexusInterface::instance(m_PluginContainer)->setCacheDirectory( m_Settings.paths().cache()); @@ -200,9 +200,9 @@ void OrganizerCore::updateExecutablesList() } m_ExecutablesList.load(managedGame(), m_Settings); +} - // TODO this has nothing to do with executables list move to an appropriate - // function! +void OrganizerCore::updateModInfoFromDisc() { ModInfo::updateFromDisc( m_Settings.paths().mods(), &m_DirectoryStructure, m_PluginContainer, m_Settings.interface().displayForeign(), managedGame()); @@ -1426,14 +1426,6 @@ void OrganizerCore::directory_refreshed() void OrganizerCore::profileRefresh() { - // have to refresh mods twice (again in refreshModList), otherwise the refresh - // isn't complete. Not sure why - ModInfo::updateFromDisc( - m_Settings.paths().mods(), &m_DirectoryStructure, - m_PluginContainer, m_Settings.interface().displayForeign(), managedGame()); - - m_CurrentProfile->refreshModStatus(); - refreshModList(); } |
