merge with dev
This commit is contained in:
@@ -631,6 +631,8 @@ void Options::setDefaults ()
|
||||
gimpPluginShowInfoDialog = true;
|
||||
maxRecentFolders = 15;
|
||||
rtSettings.lensfunDbDirectory = ""; // set also in main.cc and main-cli.cc
|
||||
cropGuides = CROP_GUIDE_FULL;
|
||||
cropAutoFit = false;
|
||||
}
|
||||
|
||||
Options* Options::copyFrom (Options* other)
|
||||
@@ -1436,6 +1438,12 @@ void Options::readFromFile (Glib::ustring fname)
|
||||
if (keyFile.has_key ("Crop Settings", "PPI")) {
|
||||
cropPPI = keyFile.get_integer ("Crop Settings", "PPI");
|
||||
}
|
||||
if (keyFile.has_key("Crop Settings", "GuidesMode")) {
|
||||
cropGuides = CropGuidesMode(std::max(int(CROP_GUIDE_NONE), std::min(keyFile.get_integer("Crop Settings", "GuidesMode"), int(CROP_GUIDE_FULL))));
|
||||
}
|
||||
if (keyFile.has_key("Crop Settings", "AutoFit")) {
|
||||
cropAutoFit = keyFile.get_boolean("Crop Settings", "AutoFit");
|
||||
}
|
||||
}
|
||||
|
||||
if (keyFile.has_group ("Color Management")) {
|
||||
@@ -2080,6 +2088,8 @@ void Options::saveToFile (Glib::ustring fname)
|
||||
//keyFile.set_integer_list ("GUI", "CurvePanelsExpanded", crvopen);
|
||||
|
||||
keyFile.set_integer ("Crop Settings", "PPI", cropPPI);
|
||||
keyFile.set_integer("Crop Settings", "GuidesMode", cropGuides);
|
||||
keyFile.set_boolean("Crop Settings", "AutoFit", cropAutoFit);
|
||||
|
||||
keyFile.set_string ("Color Management", "PrinterProfile", rtSettings.printerProfile);
|
||||
keyFile.set_integer ("Color Management", "PrinterIntent", rtSettings.printerIntent);
|
||||
|
Reference in New Issue
Block a user