Gui: fixes #12043: Treeview doesn't work if not in combo view mode

This commit is contained in:
wmayer
2024-02-08 16:06:58 +01:00
committed by Adrián Insaurralde Avalos
parent 100ab2a975
commit e03fcf9c3f

View File

@@ -461,6 +461,19 @@ void DlgSettingsGeneral::saveDockWindowVisibility()
bool treeView = hGrp->GetGroup("TreeView")->GetBool("Enabled", false);
bool propertyView = hGrp->GetGroup("PropertyView")->GetBool("Enabled", false);
bool comboView = hGrp->GetGroup("ComboView")->GetBool("Enabled", true);
int index = -1;
if (propertyView || treeView) {
index = 1;
}
else if (comboView) {
index = 0;
}
if (index != ui->treeMode->currentIndex()) {
requireRestart();
}
switch (ui->treeMode->currentIndex()) {
case 0:
comboView = true;