reset selection, because when a list item is selected and treeview is used, no restore is possible with the collapse counter we use

This commit is contained in:
Martin Marmsoler 2023-11-12 17:43:45 +01:00
parent ad5cfe306c
commit 9636a11923

View File

@ -75,6 +75,8 @@ QAction *DoubleTreeWidget::setupAppearanceAction(const char *name,
action->setChecked(Settings::instance()->value(id, defaultValue).toBool());
connect(action, &QAction::triggered, this, [this, id](bool checked) {
Settings::instance()->setValue(id, checked);
mSelectedFile.filename =
""; // When switching view, it is not possible to restore
RepoView::parentView(this)->refresh();
});
return action;