job_status: add check to label animate
This commit is contained in:
parent
9bc75729d6
commit
3b010e6901
@ -780,6 +780,8 @@ class Panel(ScreenPanel):
|
|||||||
self.update_file_metadata()
|
self.update_file_metadata()
|
||||||
|
|
||||||
def animate_label(self):
|
def animate_label(self):
|
||||||
|
if not self.filename_label:
|
||||||
|
return False
|
||||||
ellipsized = self.labels['file'].get_layout().is_ellipsized()
|
ellipsized = self.labels['file'].get_layout().is_ellipsized()
|
||||||
if ellipsized:
|
if ellipsized:
|
||||||
self.filename_label['current'] = self.filename_label['current'][2:]
|
self.filename_label['current'] = self.filename_label['current'][2:]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user