mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Show speed control in media viewer only when supported
This commit is contained in:
parent
e9f5f0c948
commit
2eaa66e873
1 changed files with 2 additions and 3 deletions
|
@ -362,7 +362,7 @@ void PlaybackControls::showMenu() {
|
|||
|
||||
_menu.emplace(this, _menuStyle);
|
||||
|
||||
{
|
||||
if (Media::Audio::SupportsSpeedControl()) {
|
||||
auto speedItem = base::make_unique_q<MenuSpeedItem>(
|
||||
_menu,
|
||||
_menuStyle.menu,
|
||||
|
@ -372,10 +372,9 @@ void PlaybackControls::showMenu() {
|
|||
updatePlaybackSpeed(speed);
|
||||
}, speedItem->lifetime());
|
||||
_menu->addAction(std::move(speedItem));
|
||||
_menu->addSeparator();
|
||||
}
|
||||
|
||||
_menu->addSeparator();
|
||||
|
||||
_menu->addAction(tr::lng_mediaview_rotate_video(tr::now), [=] {
|
||||
_delegate->playbackControlsRotate();
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue