mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Selective sync: Don't collapse tree when entering mode #7055
doExpand() is called when the selective sync editing mode is enabled in the folder settings view. Previously it'd set the expansion to be exactly the root items. Now, it just expands any root items that are currently collapsed, leaving all other item expansion unchanged.
This commit is contained in:
parent
2e11f14a6b
commit
a72bf89779
1 changed files with 6 additions and 1 deletions
|
@ -261,7 +261,12 @@ void AccountSettings::slotToggleSignInState()
|
|||
|
||||
void AccountSettings::doExpand()
|
||||
{
|
||||
_ui->_folderList->expandToDepth(0);
|
||||
// Make sure at least the root items are expanded
|
||||
for (int i = 0; i < _model->rowCount(); ++i) {
|
||||
auto idx = _model->index(i);
|
||||
if (!_ui->_folderList->isExpanded(idx))
|
||||
_ui->_folderList->setExpanded(idx, true);
|
||||
}
|
||||
}
|
||||
|
||||
void AccountSettings::slotShowMnemonic(const QString &mnemonic) {
|
||||
|
|
Loading…
Reference in a new issue