From 3070a60ab7e721e1c2766c7bf85373ed0cd9be6a Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Wed, 6 May 2026 19:51:17 +0200 Subject: 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 --- src/pluginlistview.cpp | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'src/pluginlistview.cpp') 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(); -- cgit v1.3.1