mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-25 14:17:29 -04:00
use only gate icon, fix emty bookmark icon
This commit is contained in:
parent
550f89bcf6
commit
97045e25de
9 changed files with 41 additions and 28 deletions
|
@ -22,8 +22,7 @@ func fill(gate: Dictionary) -> void:
|
|||
title.text = "Unnamed" if gate[KEY_TITLE].is_empty() else gate[KEY_TITLE]
|
||||
description.text = gate[KEY_DESCRIPTION]
|
||||
|
||||
var icon_url = gate[KEY_ICON] if not gate[KEY_ICON].is_empty() else gate[KEY_IMAGE]
|
||||
var icon_path = await FileDownloader.download(icon_url)
|
||||
var icon_path = await FileDownloader.download(gate[KEY_ICON])
|
||||
icon.texture = FileTools.load_external_tex(icon_path)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue