def clearBookmarks(self): control.hide() yes = control.yesnoDialog(control.lang(32056), '', '') if not yes: return try: from resources.lib.modules import cache cache.cache_clear_bookmarks() control.notification(title='default', message='Bookmarks Successfully Cleared!', icon='default', sound=(control.setting('notification.sound') == 'true')) except: log_utils.error() pass
def clearBookmarks(self): control.idle() yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '') if not yes: return try: from resources.lib.modules import cache cache.cache_clear_bookmarks() control.notification(title = 'default', message = 'Bookmarks Successfully Cleared!', icon = 'default', sound = notificationSound) except: log_utils.error() pass
def clearBookmarks(self): control.hide() if not control.yesnoDialog(control.lang(32056), '', ''): return try: from resources.lib.modules import cache if cache.cache_clear_bookmarks(): control.notification(message=32100) else: control.notification(message=33586) except: log_utils.error()