mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-23 04:29:41 +02:00
Make the file selector accept all files by default
This commit is contained in:
parent
a682d10657
commit
a0515ad356
@ -72,7 +72,7 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
|
|||||||
setClock(gmenu2x->getDefaultAppClock());
|
setClock(gmenu2x->getDefaultAppClock());
|
||||||
#endif
|
#endif
|
||||||
selectordir = "";
|
selectordir = "";
|
||||||
selectorfilter = "";
|
selectorfilter = "*";
|
||||||
icon = iconPath = "";
|
icon = iconPath = "";
|
||||||
selectorbrowser = true;
|
selectorbrowser = true;
|
||||||
editable = true;
|
editable = true;
|
||||||
@ -168,6 +168,7 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
|
|||||||
#ifdef HAVE_LIBXDGMIME
|
#ifdef HAVE_LIBXDGMIME
|
||||||
if (!strncmp(key, "MimeType", lkey)) {
|
if (!strncmp(key, "MimeType", lkey)) {
|
||||||
string mimetypes = buf;
|
string mimetypes = buf;
|
||||||
|
selectorfilter = "";
|
||||||
|
|
||||||
while ((pos = mimetypes.find(';')) != mimetypes.npos) {
|
while ((pos = mimetypes.find(';')) != mimetypes.npos) {
|
||||||
int nb = 16;
|
int nb = 16;
|
||||||
@ -327,7 +328,7 @@ bool LinkApp::save() {
|
|||||||
#if defined(PLATFORM_A320) || defined(PLATFORM_GCW0)
|
#if defined(PLATFORM_A320) || defined(PLATFORM_GCW0)
|
||||||
if (consoleApp ) f << "consoleapp=true" << endl;
|
if (consoleApp ) f << "consoleapp=true" << endl;
|
||||||
#endif
|
#endif
|
||||||
if (selectorfilter!="" ) f << "selectorfilter=" << selectorfilter << endl;
|
if (selectorfilter!="*" ) f << "selectorfilter=" << selectorfilter << endl;
|
||||||
#ifdef HAVE_LIBOPK
|
#ifdef HAVE_LIBOPK
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user