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,
showWarning,
startup_info,
tooltip,
tr,
)
@ -208,7 +209,7 @@ class AVPlayer:
gui_hooks.av_player_will_play(tag)
self.current_player.play(tag, self._on_play_finished)
else:
print("no players found for", tag)
tooltip(f"no players found for {tag}")
def _best_player_for_tag(self, tag: AVTag) -> Optional[Player]:
ranked = []