Skip to content

Commit

Permalink
Fix update status icon after reverting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed May 6, 2023
1 parent 4d1a346 commit b328fef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/main/java/listfix/model/playlists/Playlist.java
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,7 @@ public void updateModifiedStatus()
}

// notify the listeners if we have changed...
if (this.isModified)
{
firePlaylistModified();
}
this.firePlaylistModified();
}

private void refreshStatus()
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/listfix/view/GUIScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -1413,10 +1413,10 @@ public void openNewTabForPlaylist(Playlist playlist)

// Tie the DocumentComponent and the Playlist in the editor together via listeners, so the former can update when the latter is modified
playlist.addModifiedListener(
list1 -> {
updateTabTitleForPlaylist(list1, tempComp);
tempComp.setIcon(getIconForPlaylist(list1));
tempComp.setPath(list1.getPath());
list -> {
updateTabTitleForPlaylist(list, tempComp);
tempComp.setIcon(getIconForPlaylist(list));
tempComp.setPath(list.getPath());
}
);

Expand Down

0 comments on commit b328fef

Please sign in to comment.