Skip to content

Commit

Permalink
This fallback only applies on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Nov 25, 2019
1 parent d83cc8d commit ebc4f7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tk_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ def prompt(
with surpress_screens():
# If the main loop isn't running, this doesn't work correctly.
# Probably also if it's not visible. So swap back to the old style.
if Query is None or not _main_loop_running or not TK_ROOT.winfo_viewable():
# It's also only a problem on Windows.
if Query is None or (utils.WIN and (
not _main_loop_running or not TK_ROOT.winfo_viewable()
)):
query_cls = QueryShim
else:
query_cls = Query
Expand Down

0 comments on commit ebc4f7d

Please sign in to comment.