|
|
|
@ -253,6 +253,7 @@ void OptionsDialog::loadBehaviorTabOptions()
@@ -253,6 +253,7 @@ void OptionsDialog::loadBehaviorTabOptions()
|
|
|
|
|
m_ui->checkShowSplash->setChecked(!pref->isSplashScreenDisabled()); |
|
|
|
|
m_ui->checkProgramExitConfirm->setChecked(pref->confirmOnExit()); |
|
|
|
|
m_ui->checkProgramAutoExitConfirm->setChecked(!pref->dontConfirmAutoExit()); |
|
|
|
|
m_ui->checkConfirmPauseAndResumeAll->setChecked(pref->confirmPauseAndResumeAll()); |
|
|
|
|
|
|
|
|
|
m_ui->windowStateComboBox->addItem(tr("Normal"), QVariant::fromValue(WindowState::Normal)); |
|
|
|
|
m_ui->windowStateComboBox->addItem(tr("Minimized"), QVariant::fromValue(WindowState::Minimized)); |
|
|
|
@ -354,6 +355,7 @@ void OptionsDialog::loadBehaviorTabOptions()
@@ -354,6 +355,7 @@ void OptionsDialog::loadBehaviorTabOptions()
|
|
|
|
|
connect(m_ui->checkShowSplash, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
|
connect(m_ui->checkProgramExitConfirm, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
|
connect(m_ui->checkProgramAutoExitConfirm, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
|
connect(m_ui->checkConfirmPauseAndResumeAll, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
|
connect(m_ui->checkShowSystray, &QGroupBox::toggled, this, &ThisType::enableApplyButton); |
|
|
|
|
connect(m_ui->checkMinimizeToSysTray, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
|
connect(m_ui->checkCloseToSystray, &QAbstractButton::toggled, this, &ThisType::enableApplyButton); |
|
|
|
@ -425,6 +427,7 @@ void OptionsDialog::saveBehaviorTabOptions() const
@@ -425,6 +427,7 @@ void OptionsDialog::saveBehaviorTabOptions() const
|
|
|
|
|
pref->setSplashScreenDisabled(isSplashScreenDisabled()); |
|
|
|
|
pref->setConfirmOnExit(m_ui->checkProgramExitConfirm->isChecked()); |
|
|
|
|
pref->setDontConfirmAutoExit(!m_ui->checkProgramAutoExitConfirm->isChecked()); |
|
|
|
|
pref->setConfirmPauseAndResumeAll(m_ui->checkConfirmPauseAndResumeAll->isChecked()); |
|
|
|
|
|
|
|
|
|
#ifdef Q_OS_WIN |
|
|
|
|
pref->setWinStartup(WinStartup()); |
|
|
|
|