From 65fa6b34cc75c9f9b790e6f1b123f0185e414c58 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Tue, 26 Aug 2014 23:43:32 +0100 Subject: [PATCH] Fixed sorting skipping repeated plugin loading. While it does lead to almost instantaneous sorting, the plugins may have changed since they were last loaded, and there's no way to tell currently, so load them all to be safe. --- src/gui/handler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp index 9d75d7cc..6c0bb338 100644 --- a/src/gui/handler.cpp +++ b/src/gui/handler.cpp @@ -851,9 +851,8 @@ namespace loot { language = Language::any; BOOST_LOG_TRIVIAL(info) << "Using message language: " << Language(language).Name(); - // Check if the plugins have been fully loaded, and if not load all plugins. - if (!g_app_state.CurrentGame().HasBeenLoaded()) - g_app_state.CurrentGame().LoadPlugins(false); + // Always reload all the plugins. + g_app_state.CurrentGame().LoadPlugins(false); //Sort plugins into their load order. list plugins = g_app_state.CurrentGame().Sort(language, [](const string& message){});