tooltip() instead of print() when no tts tag matches

Can help with debugging user error like an incorrectly-typed language
code. Don't ask me how I know. :-)
This commit is contained in:
Damien Elmes 2021-01-26 20:23:52 +10:00
parent 9831ca495a
commit 322788133b

View File

@ -35,6 +35,7 @@ from aqt.utils import (
saveGeom, saveGeom,
showWarning, showWarning,
startup_info, startup_info,
tooltip,
tr, tr,
) )
@ -208,7 +209,7 @@ class AVPlayer:
gui_hooks.av_player_will_play(tag) gui_hooks.av_player_will_play(tag)
self.current_player.play(tag, self._on_play_finished) self.current_player.play(tag, self._on_play_finished)
else: else:
print("no players found for", tag) tooltip(f"no players found for {tag}")
def _best_player_for_tag(self, tag: AVTag) -> Optional[Player]: def _best_player_for_tag(self, tag: AVTag) -> Optional[Player]:
ranked = [] ranked = []