mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 18:53:09 +02:00
More fixed for when CARD_ROOT doesn't exist
This commit is contained in:
parent
6381674f57
commit
cf9628a4cc
@ -1070,7 +1070,7 @@ void GMenu2X::options() {
|
||||
if (lang != tr.lang()) tr.setLang(lang);
|
||||
if (fileExists(CARD_ROOT) && !showRootFolder)
|
||||
unlink(CARD_ROOT);
|
||||
else if (!fileExists(CARD_ROOT) && showRootFolder)
|
||||
else if (!fileExists(CARD_ROOT) /*&& showRootFolder*/)
|
||||
symlink("/", CARD_ROOT);
|
||||
//WARNING: the above might be dangerous with CARD_ROOT set to /
|
||||
writeConfig();
|
||||
|
Loading…
Reference in New Issue
Block a user