Fixed #1901 Collapsing the tree in autosave mode on saving manually

Fixed Generic tag saving manually
This commit is contained in:
Jindra Petřík
2022-12-23 09:34:42 +01:00
parent 85275ccca6
commit 6c620f4b99
2 changed files with 13 additions and 11 deletions

View File

@@ -3818,13 +3818,14 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
refreshTree(new Openable[]{openable});
}
public void refreshTree(Openable[] openables) {
clear();
showCard(CARDEMPTYPANEL);
public void refreshTree(Openable[] openables) {
TreeItem treeItem = null;
if (currentView == VIEW_RESOURCES || currentView == VIEW_TAGLIST) {
treeItem = getCurrentTree().getCurrentTreeItem();
}
clear();
showCard(CARDEMPTYPANEL);
tagTree.updateSwfs(openables);
tagListTree.updateSwfs(openables);