src/driver/fb_generic.cpp: add possibility to use images with full name

Keep parameter file_type empty to use filenames with file name extension.


Origin commit data
------------------
Commit: e3c6a54a81
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-09-01 (Sat, 01 Sep 2018)
This commit is contained in:
2018-09-01 14:34:24 +02:00
committed by vanhofen
parent 3bd6a64121
commit aeed0a83af

View File

@@ -696,8 +696,9 @@ void CFrameBuffer::setIconBasePath(const std::string & iconPath)
std::string CFrameBuffer::getIconPath(std::string icon_name, std::string file_type)
{
std::string path, filetype;
filetype = "." + file_type;
std::string path, filetype = "";
if (!file_type.empty())
filetype = "." + file_type;
std::string dir[] = { THEMESDIR_VAR "/" + g_settings.theme_name + "/icons",
THEMESDIR "/" + g_settings.theme_name + "/icons",