Daniel Brötzmann pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/gtk/app_page.py
    ... ... @@ -131,17 +131,27 @@ def _on_update_check(self, *args: Any) -> None:
    131 131
     
    
    132 132
         @staticmethod
    
    133 133
         def _get_update_text() -> str:
    
    134
    +        gajim = ''
    
    135
    +        plugins = _('Plugins: No updates available')
    
    134 136
             if not app.settings.get('check_for_update'):
    
    135
    -            return _('Update check disabled in preferences')
    
    137
    +            gajim = _('Gajim: Update check disabled in preferences')
    
    138
    +
    
    139
    +        if not app.settings.get('plugins_update_check'):
    
    140
    +            plugins = _('Plugins: Update check disabled in preferences')
    
    141
    +
    
    142
    +        if any(gajim and plugins):
    
    143
    +            return f'{gajim}\n{plugins}'
    
    136 144
     
    
    137 145
             last_check = app.settings.get('last_update_check')
    
    138 146
             if not last_check:
    
    139
    -            return _('No updates available (last check: never)')
    
    147
    +            gajim = _('Gajim: No updates available (last check: never)')
    
    148
    +            return f'{gajim}\n{plugins}'
    
    140 149
     
    
    141 150
             date = datetime.strptime(last_check, '%Y-%m-%d %H:%M')
    
    142 151
             format_string = app.settings.get('date_format')
    
    143
    -        return _('No updates available (last check: %s)') % date.strftime(
    
    144
    -            format_string)
    
    152
    +        gajim = _('Gajim: No updates available '
    
    153
    +                  '(last check: %s)') % date.strftime(format_string)
    
    154
    +        return f'{gajim}\n{plugins}'
    
    145 155
     
    
    146 156
     
    
    147 157
     class AppMessageRow(Gtk.ListBoxRow):