mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 14:59:42 +02:00
Save changes made on the link of an OPK on the user directory.
This commit is contained in:
parent
5f1cff6d0f
commit
a04b9e3ab3
@ -73,6 +73,7 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
|
|||||||
icon = iconPath = "";
|
icon = iconPath = "";
|
||||||
selectorbrowser = false;
|
selectorbrowser = false;
|
||||||
editable = true;
|
editable = true;
|
||||||
|
edited = false;
|
||||||
#ifdef PLATFORM_DINGUX
|
#ifdef PLATFORM_DINGUX
|
||||||
consoleApp = false;
|
consoleApp = false;
|
||||||
#endif
|
#endif
|
||||||
@ -96,7 +97,6 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
|
|||||||
opkMount = opkMount.substr(0, pos);
|
opkMount = opkMount.substr(0, pos);
|
||||||
|
|
||||||
file = gmenu2x->getHome() + "/sections/";
|
file = gmenu2x->getHome() + "/sections/";
|
||||||
opkMount = (string) "/mnt/" + opkMount + '/';
|
|
||||||
|
|
||||||
param = opk_read_param(pdata, "Categories");
|
param = opk_read_param(pdata, "Categories");
|
||||||
if (!param)
|
if (!param)
|
||||||
@ -109,6 +109,8 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
|
|||||||
file += category + '/' + opkMount;
|
file += category + '/' + opkMount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
opkMount = (string) "/mnt/" + opkMount + '/';
|
||||||
|
|
||||||
param = opk_read_param(pdata, "Name");
|
param = opk_read_param(pdata, "Name");
|
||||||
if (!param)
|
if (!param)
|
||||||
ERROR("Missing \"Name\" parameter\n");
|
ERROR("Missing \"Name\" parameter\n");
|
||||||
@ -199,7 +201,7 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
|
|||||||
if (param)
|
if (param)
|
||||||
dontleave = !strcmp(param, "true");
|
dontleave = !strcmp(param, "true");
|
||||||
|
|
||||||
edited = false;
|
edited = true;
|
||||||
opk_close(pdata);
|
opk_close(pdata);
|
||||||
}
|
}
|
||||||
#endif /* HAVE_LIBOPK */
|
#endif /* HAVE_LIBOPK */
|
||||||
@ -262,8 +264,6 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
|
|||||||
infile.close();
|
infile.close();
|
||||||
|
|
||||||
if (iconPath.empty()) searchIcon();
|
if (iconPath.empty()) searchIcon();
|
||||||
|
|
||||||
edited = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const string &LinkApp::searchIcon() {
|
const string &LinkApp::searchIcon() {
|
||||||
@ -541,7 +541,6 @@ void LinkApp::launch(const string &selectedFile, const string &selectedDir) {
|
|||||||
path = getSelectorDir();
|
path = getSelectorDir();
|
||||||
else
|
else
|
||||||
path = selectedDir;
|
path = selectedDir;
|
||||||
|
|
||||||
path = cmdclean(path + selectedFile);
|
path = cmdclean(path + selectedFile);
|
||||||
|
|
||||||
if (params == "") {
|
if (params == "") {
|
||||||
|
Loading…
Reference in New Issue
Block a user