2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixes for Audio Player in touchbar.

- Removed unused Platform::SetTouchBar.
 - Added rpl::event_stream in Media Player Instance for handle closing player.
 - Fixed hiding of touchbar when last track is ended.
 - Fixed display of time when last track is ended.
 - Slightly refactored.
This commit is contained in:
23rd
2019-05-02 13:00:05 +03:00
committed by John Preston
parent 2b8e76a060
commit 9059b2e617
8 changed files with 27 additions and 41 deletions

View File

@@ -406,10 +406,6 @@ void RequestPermission(PermissionType type, Fn<void(PermissionStatus)> resultCal
void OpenSystemSettingsForPermission(PermissionType type) {
}
void SetTouchBar(TouchBarType type) {
// TouchBar is Mac only feature.
}
bool OpenSystemSettings(SystemSettingsType type) {
if (type == SystemSettingsType::Audio) {
auto options = std::vector<QString>();