void changed ();
boost::signals2::signal<void ()> Changed;
+ void write () const;
+
static Config* instance ();
static void drop ();
static void restore_defaults ();
Config ();
boost::filesystem::path file () const;
void read ();
- void write () const;
void make_decryption_keys ();
void set_defaults ();
void set_kdm_email_to_default ();
Bind (wxEVT_MENU, boost::bind (&ContentPanel::add_file_clicked, _film_editor->content_panel()), ID_add_file);
wxAcceleratorTable accel_table (1, accel);
SetAcceleratorTable (accel_table);
+
+ /* Instantly save any config changes when using the DCP-o-matic GUI */
+ Config::instance()->Changed.connect (boost::bind (&Config::write, Config::instance ()));
}
void new_film (boost::filesystem::path path)