job_status: filename tweak max chars

after the tweaks for bigger font sizes the maximum amount can be raised

TODO: investigate if a pango layout that can detect ellipzised labels is suitable to replace this method
This commit is contained in:
alfrix 2022-11-22 17:32:53 -03:00
parent 97106bc2e0
commit 12b9ee5344

View File

@ -831,7 +831,7 @@ class JobStatusPanel(ScreenPanel):
"complete": self.labels['file'].get_label(),
"current": self.labels['file'].get_label(),
"position": 0,
"limit": (self._screen.width * 24 / 480) // (self._gtk.get_font_size() / 11),
"limit": (self._screen.width * 37 / 480) // (self._gtk.get_font_size() / 11),
"length": len(self.labels['file'].get_label())
}
if self.animation_timeout is None and (self.filename_label['length'] - self.filename_label['limit']) > 0: