diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-20 20:05:15 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-20 20:05:15 -0400 |
| commit | a965a9dc41c50988c7d3629fdc5965c20053937d (patch) | |
| tree | 2be9444f384a7a91a80d3179992f0b8a11b3c53c /src/mainwindow.cpp | |
| parent | 82cc488a18e54d27b10f8fea1cc7f5c435af316e (diff) | |
added confirmation for sorting, some users click it by mistake
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 10 |
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); |
