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

Playlist appearance added to the new media player.

Also itemRemoved() now is fired as a global observable.
This commit is contained in:
John Preston
2016-10-14 20:10:15 +03:00
parent 4f0cff5467
commit 31a847fb9d
38 changed files with 677 additions and 271 deletions

View File

@@ -74,7 +74,7 @@ Manager::Manager() {
notification->updatePeerPhoto();
}
});
subscribe(Global::RefNotifySettingsChanged(), [this](const Notify::ChangeType &change) {
subscribe(Global::RefNotifySettingsChanged(), [this](Notify::ChangeType change) {
settingsChanged(change);
});
_inputCheckTimer.setTimeoutHandler([this] { checkLastInput(); });
@@ -89,7 +89,7 @@ bool Manager::hasReplyingNotification() const {
return false;
}
void Manager::settingsChanged(const Notify::ChangeType &change) {
void Manager::settingsChanged(Notify::ChangeType change) {
if (change == Notify::ChangeType::Corner) {
auto startPosition = notificationStartPosition();
auto shiftDirection = notificationShiftDirection();