Add option to disable LibRaw in preferences

This commit is contained in:
Lawrence Lee
2023-12-17 15:34:12 -08:00
parent f296991419
commit 2b7889b645
6 changed files with 38 additions and 2 deletions

View File

@@ -744,6 +744,14 @@ Gtk::Widget* Preferences::getImageProcessingPanel ()
cropFrame->add(*cropGrid);
vbImageProcessing->pack_start(*cropFrame, Gtk::PACK_SHRINK, 4);
Gtk::Frame *rawDecoderFrame = Gtk::manage(new Gtk::Frame(M("PREFERENCES_RAW_DECODER")));
Gtk::Box *rawDecoderContainer = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL));
rawDecoderFrame->add(*rawDecoderContainer);
enableLibRaw = Gtk::manage(new Gtk::CheckButton());
enableLibRaw->add(*Gtk::manage(new Gtk::Label(M("PREFERENCES_RAW_DECODER_ENABLE_LIBRAW"))));
rawDecoderContainer->pack_start(*enableLibRaw);
vbImageProcessing->pack_start(*rawDecoderFrame, Gtk::PACK_SHRINK, 4);
swImageProcessing->add(*vbImageProcessing);
return swImageProcessing;
@@ -1995,6 +2003,8 @@ void Preferences::storePreferences()
moptions.cropGuides = Options::CropGuidesMode(cropGuidesCombo->get_active_row_number());
moptions.cropAutoFit = cropAutoFitCB->get_active();
moptions.rtSettings.enableLibRaw = enableLibRaw->get_active();
toolLocationPreference->updateOptions();
moptions.rtSettings.metadata_xmp_sync = rtengine::Settings::MetadataXmpSync(metadataSyncCombo->get_active_row_number());
@@ -2229,6 +2239,8 @@ void Preferences::fillPreferences()
cropGuidesCombo->set_active(moptions.cropGuides);
cropAutoFitCB->set_active(moptions.cropAutoFit);
enableLibRaw->set_active(moptions.rtSettings.enableLibRaw);
addc.block(false);
setc.block(false);
cpfconn.block(false);