summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-20 20:05:15 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-07-20 20:05:15 -0400
commita965a9dc41c50988c7d3629fdc5965c20053937d (patch)
tree2be9444f384a7a91a80d3179992f0b8a11b3c53c /src/mainwindow.cpp
parent82cc488a18e54d27b10f8fea1cc7f5c435af316e (diff)
added confirmation for sorting, some users click it by mistake
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 962e401e..55e0a593 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -6218,6 +6218,16 @@ void MainWindow::on_showHiddenBox_toggled(bool checked)
void MainWindow::on_bossButton_clicked()
{
+ const auto r = QMessageBox::question(
+ this, tr("Sorting plugins"),
+ tr("Are you sure you want to sort your plugins list?"),
+ QMessageBox::Yes | QMessageBox::No);
+
+ if (r != QMessageBox::Yes) {
+ return;
+ }
+
+
m_OrganizerCore.savePluginList();
setEnabled(false);