mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06: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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user