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