mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Move option "Confirm torrent deletion" to Behavior page
This commit is contained in:
parent
45cbf4bf25
commit
e54cd8499e
3 changed files with 14 additions and 6 deletions
|
@ -132,6 +132,7 @@ options_imp::options_imp(QWidget *parent):
|
|||
// Apply button is activated when a value is changed
|
||||
// General tab
|
||||
connect(comboI18n, SIGNAL(currentIndexChanged(int)), this, SLOT(enableApplyButton()));
|
||||
connect(confirmDeletion, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(checkAltRowColors, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(checkShowSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(checkCloseToSystray, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
|
@ -377,6 +378,7 @@ void options_imp::saveOptions() {
|
|||
|
||||
// General preferences
|
||||
pref->setLocale(locale);
|
||||
pref->setConfirmTorrentDeletion(confirmDeletion->isChecked());
|
||||
pref->setAlternatingRowColors(checkAltRowColors->isChecked());
|
||||
pref->setSystrayIntegration(systrayIntegration());
|
||||
pref->setTrayIconStyle(TrayIcon::Style(comboTrayIcon->currentIndex()));
|
||||
|
@ -538,6 +540,7 @@ void options_imp::loadOptions() {
|
|||
// General preferences
|
||||
const Preferences* const pref = Preferences::instance();
|
||||
setLocale(pref->getLocale());
|
||||
confirmDeletion->setChecked(pref->confirmTorrentDeletion());
|
||||
checkAltRowColors->setChecked(pref->useAlternatingRowColors());
|
||||
|
||||
checkShowSplash->setChecked(!pref->isSplashScreenDisabled());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue