Tag list view - saving last selected items

Saving last selected view
This commit is contained in:
Jindra Petřík
2022-10-30 10:47:28 +01:00
parent 9e771ae9ed
commit 74ff118c22
16 changed files with 179 additions and 63 deletions

View File

@@ -878,10 +878,16 @@ public abstract class MainFrameMenu implements MenuBuilder {
finishMenu("/file");
if (Configuration.dumpView.get()) {
setGroupSelection("view", "/file/view/viewHex");
} else {
setGroupSelection("view", "/file/view/viewResources");
switch(Configuration.lastView.get()){
case MainPanel.VIEW_RESOURCES:
setGroupSelection("view", "/file/view/viewResources");
break;
case MainPanel.VIEW_TAGLIST:
setGroupSelection("view", "/file/view/viewTagList");
break;
case MainPanel.VIEW_DUMP:
setGroupSelection("view", "/file/view/viewHex");
break;
}
/*