1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:37:34 +00:00

Piano: Propagate errors in PlayerWidget

Co-authored-by: Sam Atkins <atkinssj@serenityos.org>
This commit is contained in:
Keir Davis 2022-12-28 21:43:35 +00:00 committed by Andreas Kling
parent 4311fd2774
commit 797a53b307
5 changed files with 80 additions and 46 deletions

View file

@ -15,6 +15,7 @@ class TrackManager;
class PlayerWidget final : public GUI::Toolbar {
C_OBJECT(PlayerWidget)
public:
static ErrorOr<NonnullRefPtr<PlayerWidget>> create(TrackManager&, AudioPlayerLoop&);
virtual ~PlayerWidget() override = default;
void add_track();
@ -24,6 +25,8 @@ public:
private:
explicit PlayerWidget(TrackManager&, AudioPlayerLoop&);
ErrorOr<void> initialize();
TrackManager& m_track_manager;
AudioPlayerLoop& m_audio_loop;
Vector<DeprecatedString> m_track_number_choices;