gui: fixed issue updating preferences, resulting in nodes changing to a default icon

This commit is contained in:
Blake Harnden 2022-09-10 10:06:40 -07:00
parent d045fc0d51
commit 88ccd1f194
3 changed files with 11 additions and 11 deletions

View file

@ -123,7 +123,7 @@ def _get_custom_file(config: GuiConfig, name: str) -> Optional[str]:
def get_icon(node: Node, app: "Application") -> PhotoImage:
scale = app.app_scale
image = None
# node icon was overriden with a specific value
# node icon was overridden with a specific value
if node.icon:
try:
image = images.from_file(node.icon, width=images.NODE_SIZE, scale=scale)