mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Shows message if there are no new updates. Fixed #163
This commit is contained in:
parent
2cf5caa90d
commit
904226cfd4
@ -5,7 +5,7 @@
|
|||||||
* When authorising an account, you will see a dialogue with a cancel button, in case you want to abort the process. Also, NVDA will not be blocked when the process starts. ([#101](https://github.com/manuelcortez/TWBlue/issues/101))
|
* When authorising an account, you will see a dialogue with a cancel button, in case you want to abort the process. Also, NVDA will not be blocked when the process starts. ([#101](https://github.com/manuelcortez/TWBlue/issues/101))
|
||||||
* In the translator module, the list of available languages is fetched automatically from the provider. That means all of these languages will work and there will not be inconsistencies. Also we've removed the first combo box, because the language is detected automatically by Yandex'S API. ([#153](https://github.com/manuelcortez/TWBlue/issues/153))
|
* In the translator module, the list of available languages is fetched automatically from the provider. That means all of these languages will work and there will not be inconsistencies. Also we've removed the first combo box, because the language is detected automatically by Yandex'S API. ([#153](https://github.com/manuelcortez/TWBlue/issues/153))
|
||||||
* Trending topics, searches and conversation buffers will use mute settings set for the session in wich they were opened. ([#157](https://github.com/manuelcortez/TWBlue/issues/157))
|
* Trending topics, searches and conversation buffers will use mute settings set for the session in wich they were opened. ([#157](https://github.com/manuelcortez/TWBlue/issues/157))
|
||||||
* And more. ([#156](https://github.com/manuelcortez/TWBlue/issues/156))
|
* And more. ([#156,](https://github.com/manuelcortez/TWBlue/issues/156) [#163,](https://github.com/manuelcortez/TWBlue/issues/163))
|
||||||
|
|
||||||
## changes in version 0.91 and 0.92
|
## changes in version 0.91 and 0.92
|
||||||
|
|
||||||
|
@ -477,12 +477,11 @@ class Controller(object):
|
|||||||
output.speak(_(u"Empty buffer."), True)
|
output.speak(_(u"Empty buffer."), True)
|
||||||
return
|
return
|
||||||
start = page.buffer.list.get_selected()
|
start = page.buffer.list.get_selected()
|
||||||
for i in xrange(start,count):
|
for i in xrange(start, count):
|
||||||
page.buffer.list.select_item(i)
|
if string.lower() in page.buffer.list.get_text_column(i, 1).lower():
|
||||||
if string.lower() in page.get_message().lower():
|
page.buffer.list.select_item(i)
|
||||||
return output.speak(page.get_message(), True)
|
return output.speak(page.get_message(), True)
|
||||||
output.speak(_(u"{0} not found.").format(string,), True)
|
output.speak(_(u"{0} not found.").format(string,), True)
|
||||||
page.buffer.list.select_item(start)
|
|
||||||
|
|
||||||
def seekLeft(self, *args, **kwargs):
|
def seekLeft(self, *args, **kwargs):
|
||||||
try:
|
try:
|
||||||
|
@ -10,11 +10,12 @@ logger = logging.getLogger("updater")
|
|||||||
|
|
||||||
def do_update(endpoint=application.update_url):
|
def do_update(endpoint=application.update_url):
|
||||||
try:
|
try:
|
||||||
update.perform_update(endpoint=endpoint, current_version=application.version, app_name=application.name, update_available_callback=available_update_dialog, progress_callback=progress_callback, update_complete_callback=update_finished)
|
result = update.perform_update(endpoint=endpoint, current_version=application.version, app_name=application.name, update_available_callback=available_update_dialog, progress_callback=progress_callback, update_complete_callback=update_finished)
|
||||||
except:
|
except:
|
||||||
if endpoint == application.update_url:
|
if endpoint == application.update_url:
|
||||||
logger.error("Update failed! Using mirror URL...")
|
logger.error("Update failed! Using mirror URL...")
|
||||||
return do_update(endpoint=application.mirror_update_url)
|
return do_update(endpoint=application.mirror_update_url)
|
||||||
else:
|
else:
|
||||||
logger.exception("Update failed.")
|
logger.exception("Update failed.")
|
||||||
output.speak("An exception occurred while attempting to update " + application.name + ". If this message persists, contact the " + application.name + " developers. More information about the exception has been written to the error log.",True)
|
output.speak("An exception occurred while attempting to update " + application.name + ". If this message persists, contact the " + application.name + " developers. More information about the exception has been written to the error log.",True)
|
||||||
|
return result
|
Loading…
Reference in New Issue
Block a user