Skip to content

Commit 2ae4a94

Browse files
committed
Cut&paste fix...
1 parent 5190fa8 commit 2ae4a94

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/save-and-restore/app/src/main/java/org/phoebus/applications/saveandrestore/ui/SaveAndRestoreController.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,6 @@ public void configureContextMenu(ContextMenuEvent e) {
14661466
contextMenu.getItems().clear();
14671467
contextMenu.getItems().addAll(menuItems);
14681468

1469-
// Add log entry menu item...
14701469
SelectionService.getInstance().setSelection(SaveAndRestoreApplication.NAME,
14711470
selectedItemsProperty.size() == 1 ? List.of(selectedItemsProperty.get(0)) : Collections.emptyList());
14721471
List<ContextMenuEntry> supported = ContextMenuService.getInstance().listSupportedContextMenuEntries();
@@ -1477,11 +1476,9 @@ public void configureContextMenu(ContextMenuEvent e) {
14771476
try {
14781477
action.call(null, SelectionService.getInstance().getSelection());
14791478
} catch (Exception ex) {
1480-
logger.log(Level.WARNING, "Failed to execute " + action.getName() + " from display builder.", ex);
1479+
logger.log(Level.WARNING, "Failed to execute " + action.getName() + " from save&restore", ex);
14811480
}
14821481
});
1483-
//... but disable if selection count != 1
1484-
menuItem.disableProperty().set(selectedItemsProperty.size() != 1);
14851482
contextMenu.getItems().add(menuItem);
14861483
});
14871484

0 commit comments

Comments
 (0)