mirror of
https://github.com/csd4ni3l/chaos-protocol.git
synced 2026-01-01 04:23:43 +01:00
fix rule ui not being removed, remove background from trash bin
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 36 KiB |
@@ -415,10 +415,12 @@ class RuleUI(arcade.gui.UIAnchorLayout):
|
|||||||
if self.dragged_rule_ui.rule_num in connection:
|
if self.dragged_rule_ui.rule_num in connection:
|
||||||
self.connections.remove(connection)
|
self.connections.remove(connection)
|
||||||
|
|
||||||
self.remove(self.dragged_rule_ui)
|
self.rule_space.remove(self.dragged_rule_ui)
|
||||||
del self.dragged_rule_ui
|
del self.dragged_rule_ui
|
||||||
|
|
||||||
self.dragged_rule_ui = None
|
self.dragged_rule_ui = None
|
||||||
|
|
||||||
|
self.trigger_full_render()
|
||||||
else:
|
else:
|
||||||
self.dragged_rule_ui = rule_ui
|
self.dragged_rule_ui = rule_ui
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user