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:
parent
4c4f452abb
commit
64eb86f8e8
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user