From 94dac1db99657eaf9f329fb8bf37e84f54109f0a Mon Sep 17 00:00:00 2001 From: renekton Date: Wed, 7 Aug 2024 17:26:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E7=AE=A1=E7=90=86/=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E5=A1=AB=E6=8A=A5=E5=B1=9E=E6=80=A7/=E8=B6=85?= =?UTF-8?q?=E7=BA=A7=E9=93=BE=E6=8E=A5/=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/gui/imenu/UILockMenuItem.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/designer-base/src/main/java/com/fr/design/gui/imenu/UILockMenuItem.java b/designer-base/src/main/java/com/fr/design/gui/imenu/UILockMenuItem.java index 4127b3eec8..9e8e7dded3 100644 --- a/designer-base/src/main/java/com/fr/design/gui/imenu/UILockMenuItem.java +++ b/designer-base/src/main/java/com/fr/design/gui/imenu/UILockMenuItem.java @@ -43,6 +43,11 @@ public class UILockMenuItem extends UIMenuItem implements EditLockChangeListener @Override public void updateLockedState(EditLockChangeEvent event) { this.setToolTipText(event.isLocked() ? lockedTooltips : normalTooltips); + if (event.isLocked()) { + this.putClientProperty(FineClientProperties.MENU_ITEM_TYPE, FineClientProperties.MENU_ITEM_TYPE_LOCK); + } else { + this.putClientProperty(FineClientProperties.MENU_ITEM_TYPE, null); + } this.repaint(); } }