Add option to disable LibRaw in preferences
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user