From 9964a038c1a1ed86510439a33b7022807af31d8d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 17 Jan 2025 03:01:17 +0100 Subject: Update the UI on a change to the configured cinema/screen database (#2951). --- src/tools/dcpomatic_kdm.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc index d554107cd..af69aca3c 100644 --- a/src/tools/dcpomatic_kdm.cc +++ b/src/tools/dcpomatic_kdm.cc @@ -242,7 +242,7 @@ public: overall_panel->SetSizer (main_sizer); /* Instantly save any config changes when using a DCP-o-matic GUI */ - Config::instance()->Changed.connect (boost::bind (&Config::write, Config::instance ())); + Config::instance()->Changed.connect(boost::bind(&DOMFrame::config_changed, this, _1)); _screens->ScreensChanged.connect(boost::bind(&DOMFrame::screens_changed, this)); _create->Bind (wxEVT_BUTTON, bind (&DOMFrame::create_kdms, this)); @@ -265,6 +265,16 @@ public: } private: + void config_changed(Config::Property what) + { + /* Instantly save any config changes when using a DCP-o-matic GUI */ + Config::instance()->write(); + + if (what == Config::CINEMAS_FILE) { + _screens->update(); + } + } + void file_exit () { /* false here allows the close handler to veto the close request */ -- cgit v1.2.3