Skip to content

Commit 5cc355e

Browse files
committed
Fixing tutorial positioning (which sometimes doesn't work correctly, leaving the tutorial window in the upper right corner)
1 parent 3ab16f2 commit 5cc355e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/windows/views/tutorial.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def process(self, parent_name=None):
180180

181181
# If a tutorial is already visible, just update it
182182
if self.current_dialog:
183-
# XXX: Respond to possible dock floats/moves
183+
# Respond to possible dock floats/moves
184184
self.dock.raise_()
185185
self.re_position_dialog()
186186
return
@@ -336,8 +336,8 @@ def re_position_dialog(self):
336336
position = self.position_widget.mapToGlobal(pos_rect.bottomRight())
337337

338338
# Move tutorial widget to the correct position
339-
self.re_show_dialog()
340339
self.dock.move(position)
340+
self.re_show_dialog()
341341

342342
def __init__(self, win):
343343
""" Constructor """

0 commit comments

Comments
 (0)