Skip to content

Commit

Permalink
Fix initial positioning of dialog windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ObaraEmmanuel committed Sep 13, 2023
1 parent 62fb789 commit fddbd63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hoverset/ui/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ def __init__(self, master, render_routine=None, **kw):
"SHOW_PROGRESS": self._show_progress,
"BUILDER": self._builder # Allows building custom dialogs
}
self.enable_centering()
if render_routine in routines:
# Completely custom dialogs
routines[render_routine](**kw) # noqa
elif render_routine is not None:
render_routine(self)
self.enable_centering()
self.value = None
# quirk that prevents explicit window centering on linux for best results
add = "+" if platform_is(WINDOWS, MAC) else None
Expand Down

0 comments on commit fddbd63

Please sign in to comment.