From 631f3d8e2cf15fff0956e097ad5c5d9b0e2013bd Mon Sep 17 00:00:00 2001 From: Exslims Date: Sat, 5 Aug 2017 18:58:36 +0400 Subject: [PATCH] fix bug then "move to group" operation duplicated components --- .../com/mercury/platform/ui/adr/AdrManager.java | 1 + .../components/AbstractAdrComponentFrame.java | 1 - .../main/resources/notes/showcase-profile.json | 16 ++++++++-------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app-ui/src/main/java/com/mercury/platform/ui/adr/AdrManager.java b/app-ui/src/main/java/com/mercury/platform/ui/adr/AdrManager.java index c1bc8ca3..3906ce62 100644 --- a/app-ui/src/main/java/com/mercury/platform/ui/adr/AdrManager.java +++ b/app-ui/src/main/java/com/mercury/platform/ui/adr/AdrManager.java @@ -174,6 +174,7 @@ public void subscribe() { .filter(it -> it.getDescriptor().equals(descriptor)) .findAny().orElse(null); if(targetFrame != null) { + targetFrame.onDestroy(); this.frames.remove(targetFrame); this.selectedProfile.getContents().remove(descriptor); targetFrame.dispose(); diff --git a/app-ui/src/main/java/com/mercury/platform/ui/adr/components/AbstractAdrComponentFrame.java b/app-ui/src/main/java/com/mercury/platform/ui/adr/components/AbstractAdrComponentFrame.java index 402202d7..83a65e5a 100644 --- a/app-ui/src/main/java/com/mercury/platform/ui/adr/components/AbstractAdrComponentFrame.java +++ b/app-ui/src/main/java/com/mercury/platform/ui/adr/components/AbstractAdrComponentFrame.java @@ -1,6 +1,5 @@ package com.mercury.platform.ui.adr.components; -import com.mercury.platform.shared.FrameVisibleState; import com.mercury.platform.shared.config.descriptor.adr.AdrComponentDescriptor; import com.mercury.platform.shared.store.MercuryStoreCore; import com.mercury.platform.ui.adr.components.panel.tree.AdrMouseOverListener; diff --git a/app-ui/src/main/resources/notes/showcase-profile.json b/app-ui/src/main/resources/notes/showcase-profile.json index b24407f1..f4e6d262 100644 --- a/app-ui/src/main/resources/notes/showcase-profile.json +++ b/app-ui/src/main/resources/notes/showcase-profile.json @@ -1286,8 +1286,8 @@ "height": 64 }, "hotKeyDescriptor": { - "virtualKeyCode": 49, - "keyChar": "1", + "virtualKeyCode": 0, + "keyChar": "\u0000", "menuPressed": false, "shiftPressed": false, "controlPressed": false, @@ -1364,8 +1364,8 @@ "height": 64 }, "hotKeyDescriptor": { - "virtualKeyCode": 50, - "keyChar": "2", + "virtualKeyCode": 0, + "keyChar": "\u0000", "menuPressed": false, "shiftPressed": false, "controlPressed": false, @@ -1442,8 +1442,8 @@ "height": 64 }, "hotKeyDescriptor": { - "virtualKeyCode": 51, - "keyChar": "3", + "virtualKeyCode": 0, + "keyChar": "\u0000", "menuPressed": false, "shiftPressed": false, "controlPressed": false, @@ -1520,8 +1520,8 @@ "height": 64 }, "hotKeyDescriptor": { - "virtualKeyCode": 52, - "keyChar": "4", + "virtualKeyCode": 0, + "keyChar": "\u0000", "menuPressed": false, "shiftPressed": false, "controlPressed": false,