src/mailto.py
def toggle_cache_notify_updates(self):
        """Turn cache update notifications on/off."""
        if self.wf.settings.get('cache_notify_updates', True):
            self.wf.settings['cache_notify_updates'] = False
            msg = 'Turned cache update notifications off'

        else:
            self.wf.settings['cache_notify_updates'] = True
            msg = 'Turned cache update notifications on'

        log.debug(msg)
        self.notify(msg)

        # Re-open settings
        run_alfred('{} '.format(CONFIG_KEYWORD))
Turn cache update notifications on/off.
Turn cache update notifications on/off.
Turn cache update notifications on / off .
def toggle_cache_notify_updates(self):
        if self.wf.settings.get('cache_notify_updates', True):
            self.wf.settings['cache_notify_updates'] = False
            msg = 'Turned cache update notifications off'
        else:
            self.wf.settings['cache_notify_updates'] = True
            msg = 'Turned cache update notifications on'
        log.debug(msg)
        self.notify(msg)
        run_alfred('{} '.format(CONFIG_KEYWORD))
def toggle_cache_notify_updates ( self ) : if self . wf . settings . get ( 'cache_notify_updates' , True ) : self . wf . settings [ 'cache_notify_updates' ] = False msg = 'Turned cache update notifications off' else : self . wf . settings [ 'cache_notify_updates' ] = True msg = 'Turned cache update notifications on' log . debug ( msg ) self . notify ( msg ) run_alfred ( '{} ' . format ( CONFIG_KEYWORD ) )
Turn cache update notifications on/off.
Turn cache update notifications on / off .
"""Turn cache update notifications on/off.""" # Re-open settings
self