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.
This commit is contained in:
2018-08-31 08:51:10 +02:00
parent c482b6de63
commit 082b4bea2e

View File

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