Issue #11: fix user and time modes.

This commit is contained in:
Sergey Vartanov 2020-08-26 09:54:15 +03:00
parent f452a08177
commit f88f3b9f50
3 changed files with 26 additions and 16 deletions

View file

@ -64,6 +64,8 @@ class IconExtractor:
if id_ in self.icons:
return self.icons[id_]
else:
if id_ != "no":
ui.error(f"no such icon ID {id_}")
return "M 4,4 L 4,10 10,10 10,4 z", 0, 0
if id_ == "no":
return "M 4,4 L 4,10 10,10 10,4 z", 0, 0
if id_ == "small":
return "M 6,6 L 6,8 8,8 8,6 z", 0, 0
ui.error(f"no such icon ID {id_}")