flowboxchild: Replace if statement with if expression
This commit is contained in:
parent
4dd489575e
commit
7474c124c3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user