Added announce flags to play and url methods.

This commit is contained in:
Bill Dengler
2015-05-13 17:29:58 -04:00
parent 58a8e45d56
commit 7f6cf8d30a
3 changed files with 7 additions and 15 deletions

View File

@@ -456,7 +456,7 @@ class baseBufferController(bufferController):
else:
output.speak("Not actionable.",True)
def url(self,url=''):
def url(self,url='',announce=True):
if url == '':
tweet = self.get_tweet()
urls = utils.find_urls(tweet)
@@ -469,7 +469,8 @@ class baseBufferController(bufferController):
url=urls_list.get_string()
if hasattr(urls_list, "destroy"): urls_list.destroy()
if url != '':
output.speak(_(u"Opening URL..."), True)
if announce:
output.speak(_(u"Opening URL..."), True)
webbrowser.open_new_tab(url)
def clear_list(self):