job_status: add check to label animate

This commit is contained in:
Alfredo Monclus 2024-05-25 15:15:19 -03:00
parent 9bc75729d6
commit 3b010e6901

View File

@ -780,6 +780,8 @@ class Panel(ScreenPanel):
self.update_file_metadata()
def animate_label(self):
if not self.filename_label:
return False
ellipsized = self.labels['file'].get_layout().is_ellipsized()
if ellipsized:
self.filename_label['current'] = self.filename_label['current'][2:]