|
|
|
@@ -111,6 +111,7 @@ void StoredSettings::updateGlobalProps() |
|
|
|
void StoredSettings::flush()
|
|
|
|
{
|
|
|
|
updateGlobalProps();
|
|
|
|
saveSwatchColours();
|
|
|
|
|
|
|
|
for (int i = propertyFiles.size(); --i >= 0;)
|
|
|
|
propertyFiles.getUnchecked(i)->saveIfNeeded();
|
|
|
|
@@ -179,6 +180,14 @@ void StoredSettings::loadSwatchColours() |
|
|
|
colours [2 + i].toString())));
|
|
|
|
}
|
|
|
|
|
|
|
|
void StoredSettings::saveSwatchColours()
|
|
|
|
{
|
|
|
|
PropertiesFile& props = getGlobalProperties();
|
|
|
|
|
|
|
|
for (int i = 0; i < swatchColours.size(); ++i)
|
|
|
|
props.setValue ("swatchColour" + String (i), swatchColours.getReference(i).toString());
|
|
|
|
}
|
|
|
|
|
|
|
|
int StoredSettings::ColourSelectorWithSwatches::getNumSwatches() const
|
|
|
|
{
|
|
|
|
return getAppSettings().swatchColours.size();
|
|
|
|
|