1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:05:26 +03:00

When a foo.dge file is loaded, the image file foo.png will be automatically assigned.

This commit is contained in:
Ayla 2010-09-18 21:28:54 +02:00
parent ddb5171750
commit 08468776f4

View File

@ -245,6 +245,7 @@ bool Menu::addLink(string path, string file, string section) {
INFO("Manual: '%s'\n", manual.c_str());
string shorttitle=title, description="", exec=path+file, icon="";
if (fileExists(exename+".png")) icon = exename+".png";
//Reduce title lenght to fit the link width
if (gmenu2x->font->getTextWidth(shorttitle)>gmenu2x->skinConfInt["linkWidth"]) {