Hackily update cinema player dialog when things change.
authorCarl Hetherington <cth@carlh.net>
Fri, 14 Sep 2018 20:47:19 +0000 (21:47 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 14 Sep 2018 20:47:19 +0000 (21:47 +0100)
src/tools/dcpomatic_player.cc
src/wx/cinema_player_dialog.cc
src/wx/cinema_player_dialog.h

index 5394752..3ab890a 100644 (file)
@@ -223,6 +223,7 @@ public:
        {
                _viewer->set_dcp_decode_reduction (reduction);
                _info->triggered_update ();
+               _cinema_dialog->triggered_update ();
                Config::instance()->set_decode_reduction (reduction);
        }
 
@@ -252,6 +253,7 @@ public:
                _viewer->set_film (_film);
                _viewer->seek (DCPTime(), true);
                _info->triggered_update ();
+               _cinema_dialog->triggered_update ();
 
                Config::instance()->add_to_player_history (dir);
 
@@ -400,6 +402,7 @@ private:
 
                c->Destroy ();
                _info->triggered_update ();
+               _cinema_dialog->triggered_update ();
        }
 
        void file_add_kdm ()
@@ -422,6 +425,7 @@ private:
 
                d->Destroy ();
                _info->triggered_update ();
+               _cinema_dialog->triggered_update ();
        }
 
        void file_history (wxCommandEvent& event)
@@ -438,6 +442,7 @@ private:
                _viewer->set_film (shared_ptr<Film>());
                _film.reset ();
                _info->triggered_update ();
+               _cinema_dialog->triggered_update ();
                set_menu_sensitivity ();
        }
 
index 3545608..2df4cb9 100644 (file)
@@ -39,3 +39,9 @@ CinemaPlayerDialog::CinemaPlayerDialog (wxWindow* parent, shared_ptr<FilmViewer>
 
        SetSizer (s);
 }
+
+void
+CinemaPlayerDialog::triggered_update ()
+{
+       _info->triggered_update ();
+}
index 045dafb..1af8308 100644 (file)
@@ -30,6 +30,8 @@ class CinemaPlayerDialog : public wxDialog
 public:
        CinemaPlayerDialog (wxWindow* parent, boost::shared_ptr<FilmViewer> viewer);
 
+       void triggered_update ();
+
 private:
        Controls* _controls;
        PlayerInformation* _info;