Merge pull request #2864 from nextcloud/fixes_for_wizard_advanced_setup

Fixes for wizard advanced setup
This commit is contained in:
Kevin Ottens 2021-01-25 17:45:02 +01:00 committed by GitHub
commit fd604ddc9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -149,6 +149,7 @@ void OwncloudAdvancedSetupPage::initializePage()
if (Theme::instance()->wizardSelectiveSyncDefaultNothing()) {
_selectiveSyncBlacklist = QStringList("/");
setRadioChecked(_ui.rSelectiveSync);
QTimer::singleShot(0, this, &OwncloudAdvancedSetupPage::slotSelectiveSyncClicked);
}
@ -367,6 +368,9 @@ void OwncloudAdvancedSetupPage::slotSelectiveSyncClicked()
if (updateBlacklist) {
if (!_selectiveSyncBlacklist.isEmpty()) {
_ui.rSelectiveSync->blockSignals(true);
setRadioChecked(_ui.rSelectiveSync);
_ui.rSelectiveSync->blockSignals(false);
auto s = dlg->estimatedSize();
if (s > 0) {
_ui.lSelectiveSyncSizeLabel->setText(tr("(%1)").arg(Utility::octetsToString(s)));

View file

@ -87,7 +87,7 @@
<item>
<widget class="QRadioButton" name="rSyncEverything">
<property name="text">
<string>S&amp;ynchronize everything from server (recommended)</string>
<string>S&amp;ynchronize everything from server</string>
</property>
<property name="checked">
<bool>true</bool>