job_status: change filename max characters

now it's more consistent and takes into account font size
This commit is contained in:
alfrix
2022-10-18 19:48:42 -03:00
parent b9effb5447
commit 62fd6b96f8

View File

@@ -837,8 +837,7 @@ class JobStatusPanel(ScreenPanel):
"complete": self.labels['file'].get_label(),
"current": self.labels['file'].get_label(),
"position": 0,
"limit": 0.8 * (self._gtk.get_content_width() - self.labels[
'darea'].get_allocated_width()) // self._gtk.get_font_size(),
"limit": (self._screen.width * 24 / 480) // (self._gtk.get_font_size() / 11),
"length": len(self.labels['file'].get_label())
}