src/mailto.py
def notify_of_update(self):
        """Add notification to results list if newer version available."""
        if self.wf.settings.get('notify_updates', True):
            if self.wf.update_available:
                version = wf.cached_data('__workflow_update_status',
                                         max_age=0)['version']

                subtitle = (
                    '↩ to install new version, '
                    '"{}" to turn off notifications'.format(
                        CONFIG_KEYWORD)
                )

                if not self.wf.settings.get('show_help', True):
                    subtitle = None

                self.wf.add_item(
                    'Version {} is available'.format(version),
                    subtitle,
                    valid=True,
                    arg='update',
                    icon=ICON_VERSION_NEW,
                )
Add notification to results list if newer version available.
Add notification to results list if newer version available.
Add notification to results list if newer version available .
def notify_of_update(self):
        if self.wf.settings.get('notify_updates', True):
            if self.wf.update_available:
                version = wf.cached_data('__workflow_update_status',
                                         max_age=0)['version']
                subtitle = (
                    '↩ to install new version, '
                    '"{}" to turn off notifications'.format(
                        CONFIG_KEYWORD)
                )
                if not self.wf.settings.get('show_help', True):
                    subtitle = None
                self.wf.add_item(
                    'Version {} is available'.format(version),
                    subtitle,
                    valid=True,
                    arg='update',
                    icon=ICON_VERSION_NEW,
                )
def notify_of_update ( self ) : if self . wf . settings . get ( 'notify_updates' , True ) : if self . wf . update_available : version = wf . cached_data ( '__workflow_update_status' , max_age = 0 ) [ 'version' ] subtitle = ( '↩ to install new version, ' '"{}" to turn off notifications' . format ( CONFIG_KEYWORD ) ) if not self . wf . settings . get ( 'show_help' , True ) : subtitle = None self . wf . add_item ( 'Version {} is available' . format ( version ) , subtitle , valid = True , arg = 'update' , icon = ICON_VERSION_NEW , )
Add notification to results list if newer version available.
Add notification to results list if newer version available .
"""Add notification to results list if newer version available."""
self