Fix bits missed from previous commit.
authorCarl Hetherington <cth@carlh.net>
Tue, 19 Dec 2023 13:50:42 +0000 (14:50 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 19 Dec 2023 13:50:42 +0000 (14:50 +0100)
src/wx/kdm_output_panel.cc
src/wx/kdm_output_panel.h

index e7374cff924dc582a5aae81da51d0df45b6ea77a..7779663664cbef2289c970e858266c90856320b1 100644 (file)
@@ -172,6 +172,7 @@ KDMOutputPanel::write_to_changed ()
 {
        Config::instance()->set_write_kdms_to_disk(_write_to->GetValue());
        setup_sensitivity ();
+       MethodChanged();
 }
 
 
@@ -180,6 +181,7 @@ KDMOutputPanel::email_changed ()
 {
        Config::instance()->set_email_kdms(_email->GetValue());
        setup_sensitivity ();
+       MethodChanged();
 }
 
 
@@ -348,3 +350,10 @@ KDMOutputPanel::add_email_addresses_clicked ()
        }
 }
 
+
+bool
+KDMOutputPanel::method_selected() const
+{
+       return _write_to->GetValue() || _email->GetValue();
+}
+
index 040815392d0036cd2a69b84a1643e65b2a00d827..db898b44b0bc4202220ee8f1b77365fe16192632 100644 (file)
@@ -63,6 +63,10 @@ public:
                std::function<bool (boost::filesystem::path)> confirm_overwrite
                );
 
+       bool method_selected() const;
+
+       boost::signals2::signal<void ()> MethodChanged;
+
 private:
        void kdm_write_type_changed ();
        void advanced_clicked ();