play when switch

This commit is contained in:
cheykrym 2026-04-01 03:45:35 +03:00
parent f0bba3a390
commit 2ac979e207

View File

@ -203,6 +203,8 @@ class MediaController(QObject):
# Если переключаемся с Bluetooth на CarPlay - ставим паузу
if self._current_mode == "bluetooth" and mode == "carplay":
self._controllers["bluetooth"].pause()
elif self._current_mode == "carplay" and mode == "bluetooth":
self._controllers["bluetooth"].play()
self._current_mode = mode
# Сигнал о смене режима для обновления UI
self.metadata_changed.emit(self.get_metadata())