mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-23 04:54:04 +02:00
The user skin directories were not created when saving the skin.conf file; Thus it was never saved.
This commit is contained in:
parent
f2b34f383b
commit
12a7fe4e95
@ -667,7 +667,14 @@ void GMenu2X::writeConfigOpen2x() {
|
|||||||
void GMenu2X::writeSkinConfig() {
|
void GMenu2X::writeSkinConfig() {
|
||||||
ledOn();
|
ledOn();
|
||||||
|
|
||||||
string conffile = getHome() + "/skins/" + confStr["skin"] + "/skin.conf";
|
string conffile = getHome() + "/skins/";
|
||||||
|
if (!fileExists(conffile))
|
||||||
|
mkdir(conffile.c_str(), 0770);
|
||||||
|
conffile = conffile + confStr["skin"];
|
||||||
|
if (!fileExists(conffile))
|
||||||
|
mkdir(conffile.c_str(), 0770);
|
||||||
|
conffile = conffile + "/skin.conf";
|
||||||
|
|
||||||
ofstream inf(conffile.c_str());
|
ofstream inf(conffile.c_str());
|
||||||
if (inf.is_open()) {
|
if (inf.is_open()) {
|
||||||
ConfStrHash::iterator endS = skinConfStr.end();
|
ConfStrHash::iterator endS = skinConfStr.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user