Skip to content

Commit

Permalink
Update window title when assigning new Viewable to existing ViewFrame
Browse files Browse the repository at this point in the history
Reverts and updates a previously commented out title update.
  • Loading branch information
Argent77 committed Oct 26, 2024
1 parent 10b972b commit 651816d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/infinity/gui/ViewFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void setViewable(Viewable viewable) {
this.viewable = viewable;
if (viewable instanceof Resource && ((Resource) viewable).getResourceEntry() != null) {
ResourceEntry entry = ((Resource) viewable).getResourceEntry();
// setTitle(entry.toString());
setTitle(getViewableTitle(viewable));
setIconImage(entry.getIcon().getImage());
final String path;
if (entry instanceof BIFFResourceEntry) {
Expand Down
1 change: 0 additions & 1 deletion src/org/infinity/resource/dlg/Viewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@ private void updateViewerLists() {
}

private void showExternState(DlgResource newdlg, int state, boolean isUndo) {

alive = false;
Container window = getTopLevelAncestor();
if (window instanceof ViewFrame && window.isVisible()) {
Expand Down

0 comments on commit 651816d

Please sign in to comment.