mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-12 07:48:04 +00:00
Merge pull request #3011 from ngosang/start_minimize
Fix Start Minimized checkbox in Options
This commit is contained in:
commit
101b0ee58e
@ -529,16 +529,20 @@ void options_imp::loadOptions() {
|
|||||||
const Preferences* const pref = Preferences::instance();
|
const Preferences* const pref = Preferences::instance();
|
||||||
setLocale(pref->getLocale());
|
setLocale(pref->getLocale());
|
||||||
checkAltRowColors->setChecked(pref->useAlternatingRowColors());
|
checkAltRowColors->setChecked(pref->useAlternatingRowColors());
|
||||||
checkShowSystray->setChecked(pref->systrayIntegration());
|
|
||||||
checkShowSplash->setChecked(!pref->isSplashScreenDisabled());
|
checkShowSplash->setChecked(!pref->isSplashScreenDisabled());
|
||||||
if (checkShowSystray->isChecked()) {
|
checkStartMinimized->setChecked(pref->startMinimized());
|
||||||
checkCloseToSystray->setChecked(pref->closeToTray());
|
|
||||||
checkMinimizeToSysTray->setChecked(pref->minimizeToTray());
|
|
||||||
checkStartMinimized->setChecked(pref->startMinimized());
|
|
||||||
}
|
|
||||||
comboTrayIcon->setCurrentIndex(pref->trayIconStyle());
|
|
||||||
checkProgramExitConfirm->setChecked(pref->confirmOnExit());
|
checkProgramExitConfirm->setChecked(pref->confirmOnExit());
|
||||||
|
|
||||||
|
checkShowSystray->setChecked(pref->systrayIntegration());
|
||||||
|
if (checkShowSystray->isChecked()) {
|
||||||
|
checkMinimizeToSysTray->setChecked(pref->minimizeToTray());
|
||||||
|
checkCloseToSystray->setChecked(pref->closeToTray());
|
||||||
|
comboTrayIcon->setCurrentIndex(pref->trayIconStyle());
|
||||||
|
}
|
||||||
|
|
||||||
checkPreventFromSuspend->setChecked(pref->preventFromSuspend());
|
checkPreventFromSuspend->setChecked(pref->preventFromSuspend());
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
checkStartup->setChecked(pref->WinStartup());
|
checkStartup->setChecked(pref->WinStartup());
|
||||||
// Windows: file association settings
|
// Windows: file association settings
|
||||||
|
Loading…
Reference in New Issue
Block a user