mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
refresh selection on delete
This commit is contained in:
+2
@@ -820,10 +820,12 @@ public class Presenter implements IPlugInPort {
|
||||
// Remove selected components from any groups.
|
||||
ungroupComponents(selectedComponents);
|
||||
currentProject.getComponents().removeAll(selectedComponents);
|
||||
this.selectedComponents.clear();
|
||||
messageDispatcher.dispatchMessage(EventType.PROJECT_MODIFIED, oldProject, cloner
|
||||
.deepClone(currentProject), "Delete");
|
||||
this.modified = true;
|
||||
fireFileStatusChanged();
|
||||
fireSelectionChanged();
|
||||
messageDispatcher.dispatchMessage(EventType.REPAINT);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user