mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Add audio playlist using Info::Media::ListWidget.
This commit is contained in:
@@ -116,7 +116,7 @@ void WrapWidget::startInjectingActivePeerProfiles() {
|
||||
using namespace rpl::mappers;
|
||||
rpl::combine(
|
||||
_wrap.value(),
|
||||
_controller->window()->activePeer.value())
|
||||
_controller->parentController()->activePeer.value())
|
||||
| rpl::filter((_1 == Wrap::Side) && (_2 != nullptr))
|
||||
| rpl::map(_2)
|
||||
| rpl::start_with_next([this](not_null<PeerData*> peer) {
|
||||
@@ -241,7 +241,7 @@ void WrapWidget::forceContentRepaint() {
|
||||
// _anotherTabMemento = createTabMemento(tab);
|
||||
// }
|
||||
// auto newController = createController(
|
||||
// _controller->window(),
|
||||
// _controller->parentController(),
|
||||
// _anotherTabMemento.get());
|
||||
// auto newContent = createContent(
|
||||
// _anotherTabMemento.get(),
|
||||
@@ -331,7 +331,7 @@ void WrapWidget::createTopBar() {
|
||||
_topBar,
|
||||
st::infoTopBarClose));
|
||||
close->addClickHandler([this] {
|
||||
_controller->window()->closeThirdSection();
|
||||
_controller->parentController()->closeThirdSection();
|
||||
});
|
||||
}
|
||||
if (wrapValue == Wrap::Layer) {
|
||||
@@ -340,7 +340,7 @@ void WrapWidget::createTopBar() {
|
||||
_topBar,
|
||||
st::infoLayerTopBarClose));
|
||||
close->addClickHandler([this] {
|
||||
_controller->window()->hideSpecialLayer();
|
||||
_controller->parentController()->hideSpecialLayer();
|
||||
});
|
||||
} else if (requireTopBarSearch()) {
|
||||
auto search = _controller->searchFieldController();
|
||||
@@ -465,7 +465,7 @@ void WrapWidget::showProfileMenu() {
|
||||
_topBarMenuToggle->installEventFilter(_topBarMenu.get());
|
||||
|
||||
Window::FillPeerMenu(
|
||||
_controller->window(),
|
||||
_controller->parentController(),
|
||||
_controller->peer(),
|
||||
[this](const QString &text, base::lambda<void()> callback) {
|
||||
return _topBarMenu->addAction(text, std::move(callback));
|
||||
@@ -788,7 +788,7 @@ void WrapWidget::showNewContent(
|
||||
&& (params.animated != anim::type::instant);
|
||||
auto animationParams = SectionSlideParams();
|
||||
auto newController = createController(
|
||||
_controller->window(),
|
||||
_controller->parentController(),
|
||||
memento);
|
||||
auto newContent = object_ptr<ContentWidget>(nullptr);
|
||||
if (needAnimation) {
|
||||
|
Reference in New Issue
Block a user