mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
plugins: add and use default hint icon; THX to fred_feuerstein
Origin commit data
------------------
Branch: ni/coolstream
Commit: 765ad18b07
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-10-08 (Wed, 08 Oct 2014)
Origin message was:
------------------
- plugins: add and use default hint icon; THX to fred_feuerstein
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -210,7 +210,11 @@ bool CPlugins::parseCfg(plugin *plugin_data)
|
||||
plugin_data->hide = false;
|
||||
plugin_data->type = CPlugins::P_TYPE_DISABLED;
|
||||
plugin_data->integration = CPlugins::I_TYPE_DISABLED;
|
||||
plugin_data->hinticon = plugin_data->filename + "_hint";
|
||||
plugin_data->hinticon = NEUTRINO_ICON_HINT_PLUGIN;
|
||||
|
||||
std::string _hintIcon = plugin_data->plugindir + "/" + plugin_data->filename + "_hint.png";
|
||||
if (access(_hintIcon.c_str(), F_OK) == 0)
|
||||
plugin_data->hinticon = _hintIcon;
|
||||
|
||||
for (int i = 0; i < linecount; i++)
|
||||
{
|
||||
@@ -294,7 +298,7 @@ bool CPlugins::parseCfg(plugin *plugin_data)
|
||||
|
||||
inFile.close();
|
||||
|
||||
std::string _hintIcon = plugin_data->plugindir + "/" + plugin_data->hinticon + ".png";
|
||||
_hintIcon = plugin_data->plugindir + "/" + plugin_data->hinticon + ".png";
|
||||
if (access(_hintIcon.c_str(), F_OK) == 0)
|
||||
plugin_data->hinticon = _hintIcon;
|
||||
|
||||
|
Reference in New Issue
Block a user