mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Implemented "Close to systray"
This commit is contained in:
parent
a22afba059
commit
78aef3c3bc
6 changed files with 35 additions and 2 deletions
|
@ -141,6 +141,7 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
connect(checkAdditionDialog, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
|
||||
connect(txt_savePath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(check_goToSysTray, 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(preview_program, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
|
@ -219,6 +220,7 @@ void options_imp::saveOptions(){
|
|||
settings.setValue("ConfirmOnExit", getConfirmOnExit());
|
||||
settings.setValue("ClearFinishedDownloads", getClearFinishedOnExit());
|
||||
settings.setValue("GoToSystray", getGoToSysTrayOnMinimizingWindow());
|
||||
settings.setValue("GoToSystrayOnExit", getGoToSysTrayOnExitingWindow());
|
||||
settings.endGroup();
|
||||
settings.setValue("PreviewProgram", getPreviewProgram());
|
||||
// End Misc options
|
||||
|
@ -394,6 +396,7 @@ void options_imp::loadOptions(){
|
|||
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_closeToSysTray->setChecked(settings.value("GoToSystrayOnExit", true).toBool());
|
||||
settings.endGroup();
|
||||
preview_program->setText(settings.value("PreviewProgram", QString()).toString());
|
||||
// End Misc options
|
||||
|
@ -437,6 +440,10 @@ bool options_imp::getGoToSysTrayOnMinimizingWindow() const{
|
|||
return check_goToSysTray->isChecked();
|
||||
}
|
||||
|
||||
bool options_imp::getGoToSysTrayOnExitingWindow() const{
|
||||
return check_closeToSysTray->isChecked();
|
||||
}
|
||||
|
||||
bool options_imp::getConfirmOnExit() const{
|
||||
return confirmExit_checkBox->isChecked();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue