mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Take control over macOS media keys only when using music player. #2549
This commit is contained in:
@@ -1640,6 +1640,8 @@ void MainWidget::closeBothPlayers() {
|
||||
if (Media::Player::exists()) {
|
||||
Media::Player::instance()->stop();
|
||||
}
|
||||
|
||||
Shortcuts::disableMediaShortcuts();
|
||||
}
|
||||
|
||||
void MainWidget::createPlayer() {
|
||||
@@ -1657,6 +1659,8 @@ void MainWidget::createPlayer() {
|
||||
_playerHeight = _contentScrollAddToY = _player->contentHeight();
|
||||
updateControlsGeometry();
|
||||
}
|
||||
|
||||
Shortcuts::enableMediaShortcuts();
|
||||
}
|
||||
|
||||
void MainWidget::playerHeightUpdated() {
|
||||
|
Reference in New Issue
Block a user