summaryrefslogtreecommitdiff
path: root/src/pluginlistview.cpp
diff options
context:
space:
mode:
authorJonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com>2026-05-06 19:51:17 +0200
committerGitHub <noreply@github.com>2026-05-06 12:51:17 -0500
commit3070a60ab7e721e1c2766c7bf85373ed0cd9be6a (patch)
treefd029df1bf00c8f31d6cc00497188cfd29784e6d /src/pluginlistview.cpp
parent6d02ef2b751bd55d2a2718c2b31cec1c0ce55479 (diff)
Don't apply LOOT-sorted load order until user clicks "Apply" (#2382)
* Add sorted plugin list to LOOT dialog (markdown and button) * Prefix plugins with checkboxes to show whether they're enabled
Diffstat (limited to 'src/pluginlistview.cpp')
-rw-r--r--src/pluginlistview.cpp25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/pluginlistview.cpp b/src/pluginlistview.cpp
index f8990a94..c7dc1507 100644
--- a/src/pluginlistview.cpp
+++ b/src/pluginlistview.cpp
@@ -181,23 +181,16 @@ void PluginListView::onSortButtonClicked()
{
const bool offline = m_core->settings().network().offlineMode();
- auto r = QMessageBox::No;
-
if (offline) {
- r = QMessageBox::question(topLevelWidget(), tr("Sorting plugins"),
- tr("Are you sure you want to sort your plugins list?") +
- "\r\n\r\n" +
- tr("Note: You are currently in offline mode and LOOT "
- "will not update the master list."),
- QMessageBox::Yes | QMessageBox::No);
- } else {
- r = QMessageBox::question(topLevelWidget(), tr("Sorting plugins"),
- tr("Are you sure you want to sort your plugins list?"),
- QMessageBox::Yes | QMessageBox::No);
- }
-
- if (r != QMessageBox::Yes) {
- return;
+ const auto r = QMessageBox::question(
+ topLevelWidget(), tr("Sorting plugins"),
+ tr("Are you sure you want to sort your plugins list?") + "\r\n\r\n" +
+ tr("Note: You are currently in offline mode and LOOT "
+ "will not update the master list."),
+ QMessageBox::Yes | QMessageBox::No);
+ if (r != QMessageBox::Yes) {
+ return;
+ }
}
m_core->savePluginList();