forked from len0rd/rockbox
Theme Editor: Changed default directories for fonts and targetdb, font downloader will now make download directory if it doesn't exist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27515 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d03929b0c9
commit
2a2df2857b
2 changed files with 8 additions and 2 deletions
|
|
@ -40,6 +40,9 @@ FontDownloader::FontDownloader(QWidget *parent, QString path) :
|
||||||
|
|
||||||
manager = new QNetworkAccessManager();
|
manager = new QNetworkAccessManager();
|
||||||
|
|
||||||
|
if(!dir.exists())
|
||||||
|
dir.mkpath(path);
|
||||||
|
|
||||||
if(dir.isReadable())
|
if(dir.isReadable())
|
||||||
{
|
{
|
||||||
fout.setFileName(dir.absolutePath() + "/fonts.zip");
|
fout.setFileName(dir.absolutePath() + "/fonts.zip");
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,10 @@ void PreferencesDialog::loadRender()
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
settings.beginGroup("RBFont");
|
settings.beginGroup("RBFont");
|
||||||
|
|
||||||
ui->fontBox->setText(settings.value("fontDir", "/").toString());
|
QString confDir = QDir::homePath() + "/.rbthemeeditor";
|
||||||
|
|
||||||
|
ui->fontBox->setText(settings.value("fontDir", confDir + "/fonts/")
|
||||||
|
.toString());
|
||||||
|
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
|
|
@ -129,7 +132,7 @@ void PreferencesDialog::loadRender()
|
||||||
settings.beginGroup("TargetData");
|
settings.beginGroup("TargetData");
|
||||||
|
|
||||||
ui->dbBox->setText(settings.value("targetDbPath",
|
ui->dbBox->setText(settings.value("targetDbPath",
|
||||||
QDir::homePath() + "/.targetdb")
|
confDir + "/targetdb")
|
||||||
.toString());
|
.toString());
|
||||||
|
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue