mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
If stuck wait for three seconds of packets.
This commit is contained in:
@@ -403,7 +403,7 @@ void Instance::playPauseCancelClicked(AudioMsgId::Type type) {
|
||||
|
||||
auto state = mixer()->currentState(type);
|
||||
auto stopped = IsStoppedOrStopping(state.state);
|
||||
auto showPause = !stopped && (state.state == State::Playing || state.state == State::Resuming || state.state == State::Starting);
|
||||
auto showPause = ShowPauseIcon(state.state);
|
||||
auto audio = state.id.audio();
|
||||
if (audio && audio->loading()) {
|
||||
audio->cancel();
|
||||
|
Reference in New Issue
Block a user