Skip to content

Commit 970d2a4

Browse files
authored
Update treenodehandlers.py to prevent freeze ups (#2205)
The _ActionHandler class is based off wx.Window which causes a native widget to be created. Avoid adding this native window to the tree to prevent Windows OS freezes when the tree is scrolled. Add it to the tree's parent instead. Looks like the only wx.Window feature utilized is for popup menus when a tree item is right-clicked. Attempts to fix #1843.
1 parent 2f4136d commit 970d2a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/robotide/ui/treenodehandlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class _ActionHandler(wx.Window):
8888
_label_open_folder = 'Open Containing Folder'
8989

9090
def __init__(self, controller, tree, node, settings):
91-
wx.Window.__init__(self, tree)
91+
wx.Window.__init__(self, tree.GetParent())
9292
self.controller = controller
9393
self._tree = tree
9494
self._node = node

0 commit comments

Comments
 (0)