diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-17 03:01:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-22 14:34:25 +0100 |
| commit | dfa19a07e75326a9a80938345786c7785ad78948 (patch) | |
| tree | 2cb2a48cbb50055bade40f438e55b77335b54efc /src/wx/screens_panel.h | |
| parent | 43ac051e22cd59c5bfbd3a0f68d5bd7416bdb006 (diff) | |
Add update() to allow re-filling from a new database.
Diffstat (limited to 'src/wx/screens_panel.h')
| -rw-r--r-- | src/wx/screens_panel.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wx/screens_panel.h b/src/wx/screens_panel.h index 90dc4aec6..07f72f9a8 100644 --- a/src/wx/screens_panel.h +++ b/src/wx/screens_panel.h @@ -49,6 +49,9 @@ public: explicit ScreensPanel (wxWindow* parent); ~ScreensPanel (); + /** Clear and re-fill the panel from the currently-configured database */ + void update(); + std::set<std::pair<CinemaID, ScreenID>> screens() const; void setup_sensitivity (); @@ -118,7 +121,7 @@ private: bool _ignore_selection_change = false; bool _ignore_check_change = false; - CinemaList _cinema_list; + std::unique_ptr<CinemaList> _cinema_list; Collator _collator; }; |
