1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-29 15:00:37 +02:00

Default the 'browser' option to 'true'.

This permits the 'browser' option to be saved for OPK packages
as well.
This commit is contained in:
Paul Cercueil 2012-10-23 06:39:51 +02:00
parent 4c4f452abb
commit 64eb86f8e8

View File

@ -71,7 +71,7 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
selectordir = ""; selectordir = "";
selectorfilter = ""; selectorfilter = "";
icon = iconPath = ""; icon = iconPath = "";
selectorbrowser = false; selectorbrowser = true;
editable = true; editable = true;
edited = false; edited = false;
#ifdef PLATFORM_DINGUX #ifdef PLATFORM_DINGUX
@ -147,7 +147,6 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
for (i = 0; i < sizeof(tokens) / sizeof(tokens[0]); i++) { for (i = 0; i < sizeof(tokens) / sizeof(tokens[0]); i++) {
if (params.find(tokens[i]) != params.npos) { if (params.find(tokens[i]) != params.npos) {
selectorbrowser = true;
selectordir = CARD_ROOT; selectordir = CARD_ROOT;
break; break;
} }
@ -219,7 +218,7 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
} else if (name == "selectordir") { } else if (name == "selectordir") {
setSelectorDir( value ); setSelectorDir( value );
} else if (name == "selectorbrowser") { } else if (name == "selectorbrowser") {
if (value=="true") selectorbrowser = true; if (value=="false") selectorbrowser = false;
} else if (name == "selectorscreens") { } else if (name == "selectorscreens") {
setSelectorScreens( value ); setSelectorScreens( value );
} else if (name == "selectoraliases") { } else if (name == "selectoraliases") {
@ -336,7 +335,7 @@ bool LinkApp::save() {
#endif #endif
if (iclock!=0 ) f << "clock=" << iclock << endl; if (iclock!=0 ) f << "clock=" << iclock << endl;
if (selectordir!="" ) f << "selectordir=" << selectordir << endl; if (selectordir!="" ) f << "selectordir=" << selectordir << endl;
if (selectorbrowser ) f << "selectorbrowser=true" << endl; if (!selectorbrowser ) f << "selectorbrowser=false" << endl;
if (selectorscreens!="") f << "selectorscreens=" << selectorscreens << endl; if (selectorscreens!="") f << "selectorscreens=" << selectorscreens << endl;
if (aliasfile!="" ) f << "selectoraliases=" << aliasfile << endl; if (aliasfile!="" ) f << "selectoraliases=" << aliasfile << endl;
f.close(); f.close();