mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
WebUI: Improve torrent deletion
* Added 'Confirm when deleting torrents' option to the WebUI * Confirm deletion dialog now uses MUI.Modal PR #21289. Closes #18345.
This commit is contained in:
parent
a0c32110f1
commit
0ea35c54a3
4 changed files with 202 additions and 99 deletions
|
@ -127,6 +127,8 @@ void AppController::preferencesAction()
|
|||
// Language
|
||||
data[u"locale"_s] = pref->getLocale();
|
||||
data[u"performance_warning"_s] = session->isPerformanceWarningEnabled();
|
||||
// Transfer List
|
||||
data[u"confirm_torrent_deletion"_s] = pref->confirmTorrentDeletion();
|
||||
// Log file
|
||||
data[u"file_log_enabled"_s] = app()->isFileLoggerEnabled();
|
||||
data[u"file_log_path"_s] = app()->fileLoggerPath().toString();
|
||||
|
@ -504,6 +506,9 @@ void AppController::setPreferencesAction()
|
|||
}
|
||||
if (hasKey(u"performance_warning"_s))
|
||||
session->setPerformanceWarningEnabled(it.value().toBool());
|
||||
// Transfer List
|
||||
if (hasKey(u"confirm_torrent_deletion"_s))
|
||||
pref->setConfirmTorrentDeletion(it.value().toBool());
|
||||
// Log file
|
||||
if (hasKey(u"file_log_enabled"_s))
|
||||
app()->setFileLoggerEnabled(it.value().toBool());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue