diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-17 03:01:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-22 14:34:25 +0100 |
| commit | 9964a038c1a1ed86510439a33b7022807af31d8d (patch) | |
| tree | 07b84d5f2dabebed59b561f37e7c4128ce65947f | |
| parent | dfa19a07e75326a9a80938345786c7785ad78948 (diff) | |
Update the UI on a change to the configured cinema/screen database (#2951).
| -rw-r--r-- | src/tools/dcpomatic_kdm.cc | 12 |
1 files changed, 11 insertions, 1 deletions
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 */ |
