diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-07-14 15:19:22 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2020-07-15 15:05:57 +0300 |
commit | bcf9f3199d77fa28dc9ad76206449f1c5afaba69 (patch) | |
tree | 8aa054c6e05d0fd5aa5d7a2a80594421e18ccc7f /src/gui/generalsettings.cpp | |
parent | cbcaeb9c1a6445f641c80fa43384f474f941c48b (diff) |
Remove dead code
Diffstat (limited to 'src/gui/generalsettings.cpp')
-rw-r--r-- | src/gui/generalsettings.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index ba778f9b9..5f82afbbc 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -62,8 +62,6 @@ GeneralSettings::GeneralSettings(QWidget *parent) connect(_ui->newFolderLimitCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::saveMiscSettings); connect(_ui->newFolderLimitSpinBox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &GeneralSettings::saveMiscSettings); connect(_ui->newExternalStorage, &QAbstractButton::toggled, this, &GeneralSettings::saveMiscSettings); - connect(_ui->deltaSyncCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::saveMiscSettings); - connect(_ui->deltaSyncSpinBox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &GeneralSettings::saveMiscSettings); #ifndef WITH_CRASHREPORTER _ui->crashreporterCheckBox->setVisible(false); @@ -100,9 +98,6 @@ GeneralSettings::GeneralSettings(QWidget *parent) _ui->updateChannel->hide(); #endif } - if (!theme->enableExperimentalFeatures()) { - _ui->experimentalGroupBox->hide(); - } _ui->versionLabel->setText(QStringLiteral("<a href='%1'>%1</a>").arg(MIRALL_VERSION_STRING)); QObject::connect(_ui->versionLabel, &QLabel::linkActivated, this, &GeneralSettings::showAbout); @@ -131,8 +126,6 @@ void GeneralSettings::loadMiscSettings() _ui->newFolderLimitSpinBox->setValue(newFolderLimit.second); _ui->newExternalStorage->setChecked(cfgFile.confirmExternalStorage()); _ui->monoIconsCheckBox->setChecked(cfgFile.monoIcons()); - _ui->deltaSyncCheckBox->setChecked(cfgFile.deltaSyncEnabled()); - _ui->deltaSyncSpinBox->setValue(cfgFile.deltaSyncMinFileSize() / (1024 * 1024)); } void GeneralSettings::showEvent(QShowEvent *) @@ -230,8 +223,6 @@ void GeneralSettings::saveMiscSettings() cfgFile.setNewBigFolderSizeLimit(_ui->newFolderLimitCheckBox->isChecked(), _ui->newFolderLimitSpinBox->value()); cfgFile.setConfirmExternalStorage(_ui->newExternalStorage->isChecked()); - cfgFile.setDeltaSyncEnabled(_ui->deltaSyncCheckBox->isChecked()); - cfgFile.setDeltaSyncMinFileSize(_ui->deltaSyncSpinBox->value() * 1024 * 1024); } void GeneralSettings::slotToggleLaunchOnStartup(bool enable) |