Skip to content

Commit

Permalink
app: set play button label according to playback state [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramen2X committed Mar 1, 2024
1 parent 9b3a8da commit 76dab7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/viewer/mediapanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,9 @@ void MediaPanel::Play(bool e)

m_PlaybackStart = QDateTime::currentMSecsSinceEpoch();
m_PlaybackTimer->start();
m_PlayBtn->setText("Pause");
} else {
m_PlayBtn->setText("Play");
m_PlaybackTimer->stop();
}
m_PlayBtn->setChecked(e);
Expand Down

0 comments on commit 76dab7d

Please sign in to comment.