flowboxchild: Replace if statement with if expression

This commit is contained in:
alfrix 2024-04-26 09:03:26 -03:00
parent 4dd489575e
commit 7474c124c3

View File

@ -19,10 +19,7 @@ class PrintListItem(Gtk.FlowBoxChild):
self.size = size
def set_as_dir(self, is_dir: bool):
if is_dir:
self.dir = -1
else:
self.dir = 0
self.dir = -1 if is_dir else 0
def set_path(self, path):
self.path = path