1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Removed the "wrapper" feature.

It is up to the system to restart GMenu2X when the application exits.
This commit is contained in:
Paul Cercueil
2012-04-13 18:12:30 +02:00
parent 8f57afcf53
commit 7687212b4e
4 changed files with 0 additions and 13 deletions

View File

@@ -194,16 +194,12 @@ bool Menu::addLink(string path, string file, string section) {
return false;
}
//if the extension is not equal to gpu or dge then enable the wrapper by default
bool wrapper = false;
//strip the extension from the filename
string title = file;
string::size_type pos = title.rfind(".");
if (pos!=string::npos && pos>0) {
string ext = title.substr(pos, title.length());
transform(ext.begin(), ext.end(), ext.begin(), (int(*)(int)) tolower);
if (ext == ".gpu" || ext == ".dge") wrapper = false;
title = title.substr(0, pos);
}
@@ -278,7 +274,6 @@ bool Menu::addLink(string path, string file, string section) {
if (!description.empty()) f << "description=" << description << endl;
if (!icon.empty()) f << "icon=" << icon << endl;
if (!manual.empty()) f << "manual=" << manual << endl;
if (wrapper) f << "wrapper=true" << endl;
f.close();
sync();
int isection = find(sections.begin(),sections.end(),section) - sections.begin();