From f19dffdf99af889a926f073cea51c9b37fb5fbfa Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Thu, 28 May 2015 12:57:11 +0100 Subject: [PATCH] Only show load order indices for active plugins. When copying the load order. For #437. --- docs/LOOT Readme.html | 2 +- src/gui/handler.cpp | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/LOOT Readme.html b/docs/LOOT Readme.html index c1b4af6b..46470d5a 100644 --- a/docs/LOOT Readme.html +++ b/docs/LOOT Readme.html @@ -288,7 +288,7 @@ var {

A few items in the main menu are not self-explanatory:

diff --git a/src/gui/handler.cpp b/src/gui/handler.cpp index 1d98263e..92f0ffd7 100644 --- a/src/gui/handler.cpp +++ b/src/gui/handler.cpp @@ -336,8 +336,16 @@ namespace loot { else if (plugins.size() > 9) { decLength = 2; } - for (size_t i = 0; i < plugins.size(); ++i) { - ss << setw(decLength) << i << " " << hex << setw(2) << i << dec << " " << plugins[i] << "\r\n"; + size_t i = 0; + for (const auto& plugin : plugins) { + if (g_app_state.CurrentGame().IsActive(plugin)) { + ss << setw(decLength) << i << " " << hex << setw(2) << i << dec << " "; + ++i; + } + else { + ss << setw(decLength + 4) << " "; + } + ss << plugin << "\r\n"; } CopyToClipboard(ss.str()); callback->Success("");