Added bell when user interaction is needed

This commit is contained in:
SpirosChadoulos 2017-03-27 01:02:18 +03:00
parent 2fbc7f0e70
commit 5128b9567c

View file

@ -613,6 +613,8 @@ def choose_candidate(candidates, singleton, rec, cur_artist=None,
})
if default is None:
require = True
# Bell ring when interaction with the user is needed.
print('\a')
sel = ui.input_options((u'Apply', u'More candidates') + choice_opts,
require=require, default=default)
if sel == u'a':
@ -823,8 +825,6 @@ class TerminalImportSession(importer.ImportSession):
Returns a list of `PromptChoice`s.
"""
# Standard, built-in choices.
#Bell ring to alert the user that he has to interfere with the cmd
print('\a')
choices = [
PromptChoice(u's', u'Skip',
lambda s, t: importer.action.SKIP),