mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-12 03:04:51 -04:00
--Bug fixes:
-Fix path bugs when creating dialogs on Mac. -Add new setting for path when creating palette from image.
This commit is contained in:
@ -75,7 +75,7 @@ void FractoriumSettings::EnsureDefaults()
|
||||
if (FinalExt() != "jpg" && FinalExt() != "png")
|
||||
FinalExt("png");
|
||||
|
||||
QString s = SaveFolder();
|
||||
auto s = SaveFolder();
|
||||
QDir dir(s);
|
||||
|
||||
if (s.isEmpty() || !dir.exists())
|
||||
@ -85,6 +85,9 @@ void FractoriumSettings::EnsureDefaults()
|
||||
if (!paths.empty())
|
||||
SaveFolder(paths[0]);
|
||||
}
|
||||
|
||||
if (OpenPaletteImageFolder() == "")
|
||||
OpenPaletteImageFolder(QCoreApplication::applicationDirPath());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -285,6 +288,9 @@ void FractoriumSettings::Nick(const QString& s) { setValue(IDENTITYNICK, s);
|
||||
QString FractoriumSettings::OpenFolder() { return value(OPENFOLDER).toString(); }
|
||||
void FractoriumSettings::OpenFolder(const QString& s) { setValue(OPENFOLDER, s); }
|
||||
|
||||
QString FractoriumSettings::OpenPaletteImageFolder() { return value(OPENPALETTEIMAGEFOLDER).toString(); }
|
||||
void FractoriumSettings::OpenPaletteImageFolder(const QString& s) { setValue(OPENPALETTEIMAGEFOLDER, s); }
|
||||
|
||||
QString FractoriumSettings::SaveFolder() { return value(SAVEFOLDER).toString(); }
|
||||
void FractoriumSettings::SaveFolder(const QString& s) { setValue(SAVEFOLDER, s); }
|
||||
|
||||
|
Reference in New Issue
Block a user