Destroy volume dropdown after volume toggle.

This fixes https://bugs.telegram.org/c/31989

When destroying the dropdown first, the volume toggle receives an Enter
event and tries to show the dropdown (that is being destroyed).
This commit is contained in:
John Preston 2023-09-18 10:10:58 +04:00
parent 6af527ac76
commit 64dcae3174
1 changed files with 1 additions and 1 deletions

View File

@ -403,9 +403,9 @@ void Header::show(HeaderData data) {
_pauseState = _controller->pauseState();
applyPauseState();
} else {
_volume = nullptr;
_playPause = nullptr;
_volumeToggle = nullptr;
_volume = nullptr;
}
rpl::combine(