~ubuntu-core-dev/update-manager/main

« back to all changes in this revision

Viewing changes to UpdateManager/Dialogs.py

  • Committer: Sebastien Bacher
  • Date: 2023-01-13 11:03:36 UTC
  • Revision ID: seb128@ubuntu.com-20230113110336-o1j39m909mpsx3fu
Updated Livepatch wording follow the Ubuntu Pro changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        codename = get_dist()
154
154
        return di.is_lts(codename)
155
155
 
156
 
    def _has_livepatch_settings_ui(self):
157
 
        try:
158
 
            return Gio.DesktopAppInfo \
159
 
                .new('gnome-online-accounts-panel.desktop')
160
 
        except Exception:
161
 
            return None
162
 
 
163
156
    def on_livepatch_status_ready(self, active, cs, ps, fixes):
164
157
        self.set_desc(None)
165
158
 
166
159
        if not active:
167
160
            if self._is_livepatch_supported() and \
168
161
               self.settings_button and \
169
 
               self._has_livepatch_settings_ui() and \
170
162
               self.settings.get_int('launch-count') >= 4:
171
 
                self.set_desc(_("<b>Tip:</b> You can use Livepatch to "
172
 
                                "keep your computer more secure between "
173
 
                                "restarts."))
174
 
                self.settings_button.set_label(_("Settings & Livepatch…"))
 
163
                self.set_desc(_("<b>Tip:</b> You can use Livepatch with "
 
164
                                "Ubuntu Pro to keep your computer more "
 
165
                                "secure between restarts."))
 
166
                self.settings_button.set_label(_("Settings & Pro…"))
175
167
            return
176
168
 
177
169
        needs_reschedule = False