mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibVideo: Rename Status -> State in PlaybackStatusChangeEvent
class
A bit of a bikeshed, but status sounds more like a result of an action, and state sounds more accurate to what the `PlaybackManager` does. The previous and current state fields of the `PlaybackStateChangeEvent` are now removed, since they were unused (for now). This is a lead-up to the refactoring of VideoPlaybackManager to make that diff more legible.
This commit is contained in:
parent
2ff11bac3d
commit
a4c7672802
3 changed files with 7 additions and 14 deletions
|
@ -234,7 +234,7 @@ void VideoPlayerWidget::event(Core::Event& event)
|
|||
set_current_timestamp(m_playback_manager->current_playback_time());
|
||||
|
||||
frame_event.accept();
|
||||
} else if (event.type() == Video::EventType::PlaybackStatusChange) {
|
||||
} else if (event.type() == Video::EventType::PlaybackStateChange) {
|
||||
update_play_pause_icon();
|
||||
event.accept();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue