1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

options: ensure ui matches options

If we set anonymous mode make sure the ui is disabled to match.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
Spencer Oliver 2012-09-07 12:38:35 +01:00 committed by Christophe Dumez
parent a5a9b47ce4
commit e3c78d3a81

View File

@ -723,6 +723,8 @@ void options_imp::loadOptions() {
comboEncryption->setCurrentIndex(pref.getEncryptionSetting()); comboEncryption->setCurrentIndex(pref.getEncryptionSetting());
#if LIBTORRENT_VERSION_MINOR > 15 #if LIBTORRENT_VERSION_MINOR > 15
checkAnonymousMode->setChecked(pref.isAnonymousModeEnabled()); checkAnonymousMode->setChecked(pref.isAnonymousModeEnabled());
/* make sure ui matches options */
toggleAnonymousMode(checkAnonymousMode->isChecked());
#endif #endif
// Ratio limit // Ratio limit
floatValue = pref.getGlobalMaxRatio(); floatValue = pref.getGlobalMaxRatio();