work around calling focus from ctor path. (#1207)

This commit is contained in:
Kyle Reed 2023-06-28 12:50:11 -07:00 committed by GitHub
parent 830fea63ed
commit 7b1541d2e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 14 deletions

View file

@ -48,9 +48,10 @@ class PlaylistView : public View {
PlaylistView(NavigationView& nav, const std::filesystem::path& path);
~PlaylistView();
// Following 2 called by 'NavigationView::update_view' after view is created.
void set_parent_rect(Rect new_parent_rect) override;
void focus() override;
void on_hide() override;
void on_show() override;
std::string title() const override { return "Replay"; };