hourglass: allow hourglass.png

Origin commit data
------------------
Branch: ni/coolstream
Commit: ca16db0604
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-10-09 (Sat, 09 Oct 2021)

Origin message was:
------------------
- hourglass: allow hourglass.png

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-10-09 23:53:50 +02:00
parent 4b95537580
commit fbbb25e1bc

View File

@@ -72,6 +72,10 @@ void CHourGlass::initImageFiles()
std::string filename = ""; std::string filename = "";
hg_img_files.clear(); hg_img_files.clear();
path = frameBuffer->getIconPath(hg_image_basename, "png");
if (file_exists(path))
hg_img_files.push_back(hg_image_basename);
for(int i = 0; i <= MAX_IMAGES; i++) for(int i = 0; i <= MAX_IMAGES; i++)
{ {
filename = hg_image_basename; filename = hg_image_basename;