[#2485] Fix toggle action enabled state
This commit is contained in:
parent
a9456be0fb
commit
a0584f3de9
@ -1298,11 +1298,11 @@ public class RocketActions {
|
|||||||
@Override
|
@Override
|
||||||
public void clipboardChanged() {
|
public void clipboardChanged() {
|
||||||
var components = new ArrayList<>(selectionModel.getSelectedComponents());
|
var components = new ArrayList<>(selectionModel.getSelectedComponents());
|
||||||
|
super.setEnabled(!components.isEmpty());
|
||||||
|
|
||||||
if (components.isEmpty()) {
|
if (components.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.setEnabled(true);
|
|
||||||
|
|
||||||
if (isRocketSelected(components)) {
|
if (isRocketSelected(components)) {
|
||||||
super.putValue(NAME, rocket.isVisible() ?
|
super.putValue(NAME, rocket.isVisible() ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user