mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-06 15:04:34 +08:00
- Removed option 'Automatically clear finished torrents' <- Decided it wasn't good for the network :)
This commit is contained in:
parent
868d7cee4a
commit
2e4b7b375b
@ -1249,16 +1249,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="clearFinished_checkBox" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Automatically clear finished downloads</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked" >
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="check_goToSysTray" >
|
<widget class="QCheckBox" name="check_goToSysTray" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
|
@ -145,7 +145,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||||||
connect(txt_savePath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
connect(txt_savePath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||||
connect(check_goToSysTray, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
connect(check_goToSysTray, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
connect(check_closeToSysTray, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
connect(check_closeToSysTray, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
connect(clearFinished_checkBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
|
||||||
connect(confirmExit_checkBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
connect(confirmExit_checkBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
||||||
connect(preview_program, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
connect(preview_program, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||||
connect(alwaysOSD, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
connect(alwaysOSD, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||||
@ -226,7 +225,6 @@ void options_imp::saveOptions(){
|
|||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
settings.beginGroup("Behaviour");
|
settings.beginGroup("Behaviour");
|
||||||
settings.setValue("ConfirmOnExit", getConfirmOnExit());
|
settings.setValue("ConfirmOnExit", getConfirmOnExit());
|
||||||
settings.setValue("ClearFinishedDownloads", getClearFinishedOnExit());
|
|
||||||
settings.setValue("GoToSystray", getGoToSysTrayOnMinimizingWindow());
|
settings.setValue("GoToSystray", getGoToSysTrayOnMinimizingWindow());
|
||||||
settings.setValue("GoToSystrayOnExit", getGoToSysTrayOnExitingWindow());
|
settings.setValue("GoToSystrayOnExit", getGoToSysTrayOnExitingWindow());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
@ -404,7 +402,6 @@ void options_imp::loadOptions(){
|
|||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
settings.beginGroup("Behaviour");
|
settings.beginGroup("Behaviour");
|
||||||
confirmExit_checkBox->setChecked(settings.value("ConfirmOnExit", true).toBool());
|
confirmExit_checkBox->setChecked(settings.value("ConfirmOnExit", true).toBool());
|
||||||
clearFinished_checkBox->setChecked(settings.value("ClearFinishedDownloads", true).toBool());
|
|
||||||
check_goToSysTray->setChecked(settings.value("GoToSystray", true).toBool());
|
check_goToSysTray->setChecked(settings.value("GoToSystray", true).toBool());
|
||||||
check_closeToSysTray->setChecked(settings.value("GoToSystrayOnExit", false).toBool());
|
check_closeToSysTray->setChecked(settings.value("GoToSystrayOnExit", false).toBool());
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
@ -538,10 +535,6 @@ void options_imp::on_okButton_clicked(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool options_imp::getClearFinishedOnExit() const{
|
|
||||||
return clearFinished_checkBox->isChecked();
|
|
||||||
}
|
|
||||||
|
|
||||||
void options_imp::on_applyButton_clicked(){
|
void options_imp::on_applyButton_clicked(){
|
||||||
saveOptions();
|
saveOptions();
|
||||||
emit status_changed(tr("Options were saved successfully."), false);
|
emit status_changed(tr("Options were saved successfully."), false);
|
||||||
|
@ -69,7 +69,6 @@ class options_imp : public QDialog, private Ui::Dialog{
|
|||||||
// Misc Settings
|
// Misc Settings
|
||||||
bool useAdditionDialog() const;
|
bool useAdditionDialog() const;
|
||||||
QString getSavePath() const;
|
QString getSavePath() const;
|
||||||
bool getClearFinishedOnExit() const;
|
|
||||||
bool getGoToSysTrayOnMinimizingWindow() const;
|
bool getGoToSysTrayOnMinimizingWindow() const;
|
||||||
bool getGoToSysTrayOnExitingWindow() const;
|
bool getGoToSysTrayOnExitingWindow() const;
|
||||||
bool getConfirmOnExit() const;
|
bool getConfirmOnExit() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user