2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Playlist added in the new media player panel.

This commit is contained in:
John Preston
2016-10-13 18:04:40 +03:00
parent d543073632
commit 4f0cff5467
18 changed files with 499 additions and 123 deletions

View File

@@ -489,6 +489,9 @@ void MainWidget::ui_repaintHistoryItem(const HistoryItem *item) {
if (item->history()->lastMsg == item) {
item->history()->updateChatListEntry();
}
if (_playerPanel && !_playerPanel->isHidden()) {
_playerPanel->ui_repaintHistoryItem(item);
}
if (_overview) _overview->ui_repaintHistoryItem(item);
}
@@ -1364,6 +1367,9 @@ void MainWidget::itemRemoved(HistoryItem *item) {
if (_overview && (_overview->peer() == item->history()->peer || (_overview->peer() && _overview->peer() == item->history()->peer->migrateTo()))) {
_overview->itemRemoved(item);
}
if (_playerPanel) {
_playerPanel->itemRemoved(item);
}
if (!_toForward.isEmpty()) {
SelectedItemSet::iterator i = _toForward.find(item->id);
if (i != _toForward.cend() && i.value() == item) {