From 4e594c258f1ad675cb10b7c22714c9109124d808 Mon Sep 17 00:00:00 2001 From: alfrix Date: Mon, 24 Jan 2022 07:17:35 -0300 Subject: [PATCH] System: Fix long translations breaking the ui at low resolution --- panels/system.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/panels/system.py b/panels/system.py index 8104db3a..89aed9a1 100644 --- a/panels/system.py +++ b/panels/system.py @@ -359,38 +359,35 @@ class SystemPanel(ScreenPanel): logging.info("%s: %s" % (p, info)) if p != "system": - version = (info['full_version_string'] if "full_version_string" in info else info['version']) if info['configured_type'] == 'git_repo': if info['is_valid'] and not info['is_dirty']: if info['version'] == info['remote_version']: - self.labels[p].set_markup("%s\n%s" % (p, version)) + self.labels[p].set_markup("%s\n%s" % (p, info['version'])) self.labels["%s_status" % p].set_label(_("Up To Date")) self.labels["%s_status" % p].get_style_context().remove_class('update') self.labels["%s_status" % p].get_style_context().remove_class('invalid') self.labels["%s_status" % p].set_sensitive(False) else: - self.labels[p].set_markup("%s\n%s -> %s" % (p, version, info['remote_version'])) + self.labels[p].set_markup("%s\n%s -> %s" % (p, info['version'], info['remote_version'])) self.labels["%s_status" % p].set_label(_("Update")) self.labels["%s_status" % p].get_style_context().add_class('update') self.labels["%s_status" % p].set_sensitive(True) else: - self.labels[p].set_markup("%s\n%s" % (p, version)) + self.labels[p].set_markup("%s\n%s" % (p, info['version'])) self.labels["%s_status" % p].set_label(_("Invalid")) self.labels["%s_status" % p].get_style_context().add_class('invalid') self.labels["%s_status" % p].set_sensitive(True) else: if info['version'] == info['remote_version']: - self.labels[p].set_markup("%s\n%s" % (p, version)) + self.labels[p].set_markup("%s\n%s" % (p, info['version'])) self.labels["%s_status" % p].set_label(_("Up To Date")) self.labels["%s_status" % p].get_style_context().remove_class('update') self.labels["%s_status" % p].set_sensitive(False) else: - self.labels[p].set_markup("%s\n%s -> %s" % (p, version, info['remote_version'])) + self.labels[p].set_markup("%s\n%s -> %s" % (p, info['version'], info['remote_version'])) self.labels["%s_status" % p].set_label(_("Update")) self.labels["%s_status" % p].get_style_context().add_class('update') self.labels["%s_status" % p].set_sensitive(True) - - else: self.labels[p].set_markup("System") if info['package_count'] == 0: