mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
				synced 2023-10-19 15:58:31 +00:00 
			
		
		
		
	Merge branch 'master' into plugininterface
This commit is contained in:
		
							
								
								
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -201,3 +201,5 @@ Version 0.2.2 | ||||
|  | ||||
| - added replay onpause view in blackhole skin | ||||
| - implemented SetTitle() in displayreplay | ||||
| - fixed header icon for plugin menus | ||||
|  | ||||
|   | ||||
| @@ -206,7 +206,25 @@ string cImageCache::GetIconName(string label, eMenuCategory cat) { | ||||
|         case mcSetupRecord: | ||||
|         case mcSetupReplay: | ||||
|             return "standardicons/Recordings"; | ||||
|         case mcPlugin: | ||||
|         case mcPlugin: { | ||||
|             //check for Plugins | ||||
|             for (int i = 0; ; i++) { | ||||
|                 cPlugin *p = cPluginManager::GetPlugin(i); | ||||
|                 if (p) { | ||||
|                     const char *mainMenuEntry = p->MainMenuEntry(); | ||||
|                     if (mainMenuEntry) { | ||||
|                         string plugMainEntry = mainMenuEntry; | ||||
|                         try { | ||||
|                             if (label.substr(0, plugMainEntry.size()) == plugMainEntry) { | ||||
|                                 return *cString::sprintf("pluginicons/%s", p->Name()); | ||||
|                             } | ||||
|                         } catch (...) {} | ||||
|                     } | ||||
|                 } else | ||||
|                     break; | ||||
|             } | ||||
|             return "standardicons/Plugins"; | ||||
|         }  | ||||
|         case mcPluginSetup: | ||||
|         case mcSetupPlugins: | ||||
|             return "standardicons/Plugins"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user