mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed couple of issues with passcode lock support in touchbar.
This commit is contained in:
@@ -1505,6 +1505,7 @@ void AppendEmojiPacks(
|
||||
|
||||
[self createTouchBar];
|
||||
[self setTouchBar:Platform::TouchBarType::Main];
|
||||
_touchBarTypeBeforeLock = Platform::TouchBarType::Main;
|
||||
|
||||
Media::Player::instance()->playerWidgetToggled(
|
||||
) | rpl::start_with_next([=](bool toggled) {
|
||||
@@ -1770,7 +1771,9 @@ void AppendEmojiPacks(
|
||||
|
||||
- (void) handleTrackStateChange:(Media::Player::TrackState)state {
|
||||
if (state.id.type() == kSongType) {
|
||||
[self setTouchBar:Platform::TouchBarType::AudioPlayerForce];
|
||||
if (_touchBarType != Platform::TouchBarType::None) {
|
||||
[self setTouchBar:Platform::TouchBarType::AudioPlayerForce];
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user