From 64dcae3174b7a14b97498ff41a0890321ddb2f0a Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 18 Sep 2023 10:10:58 +0400 Subject: [PATCH] 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). --- Telegram/SourceFiles/media/stories/media_stories_header.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/media/stories/media_stories_header.cpp b/Telegram/SourceFiles/media/stories/media_stories_header.cpp index 9156ac35d..6b624c3d7 100644 --- a/Telegram/SourceFiles/media/stories/media_stories_header.cpp +++ b/Telegram/SourceFiles/media/stories/media_stories_header.cpp @@ -403,9 +403,9 @@ void Header::show(HeaderData data) { _pauseState = _controller->pauseState(); applyPauseState(); } else { - _volume = nullptr; _playPause = nullptr; _volumeToggle = nullptr; + _volume = nullptr; } rpl::combine(