Skip to content

Commit

Permalink
Only show "Remove playlist directory" on configured playlist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Nov 12, 2023
1 parent 8ce1b71 commit 36ca2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/listfix/view/GUIScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private void handleMouseEvent(MouseEvent e)
final boolean allTopLevel = selectPath != null && Arrays.stream(selectPath)
.allMatch(path -> path.getParentPath() != null && path.getParentPath().getParentPath() == null);

_miRemovePlaylistDirectory.setEnabled(allTopLevel);
_miRemovePlaylistDirectory.setVisible(allTopLevel);

if (_playlistDirectoryTree.getSelectionCount() > 0)
{
Expand Down

0 comments on commit 36ca2d1

Please sign in to comment.