mirror of https://github.com/procxx/kepka.git
Clean up formatting
This commit is contained in:
parent
f09feaf8b1
commit
16aea1439a
|
@ -34,9 +34,12 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||||
#include "storage/file_download.h"
|
#include "storage/file_download.h"
|
||||||
#include "window/themes/window_theme.h"
|
#include "window/themes/window_theme.h"
|
||||||
|
|
||||||
PeerListBox::PeerListBox(QWidget*, std::unique_ptr<PeerListController> controller, base::lambda<void(not_null<PeerListBox*>)> init)
|
PeerListBox::PeerListBox(QWidget*
|
||||||
: _controller(std::move(controller))
|
, std::unique_ptr<PeerListController> controller
|
||||||
, _init(std::move(init)) {
|
, base::lambda<void(not_null<PeerListBox*>)> init)
|
||||||
|
: _controller(std::move(controller))
|
||||||
|
, _init(std::move(init))
|
||||||
|
{
|
||||||
Expects(_controller != nullptr);
|
Expects(_controller != nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,9 +49,11 @@ QString getButtonText(MediaOverviewType type, int count) {
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
SharedMediaWidget::SharedMediaWidget(QWidget *parent, PeerData *peer) : BlockWidget(parent, peer, lang(lng_profile_shared_media))
|
SharedMediaWidget::SharedMediaWidget(QWidget *parent, PeerData *peer)
|
||||||
, _history(App::history(peer))
|
: BlockWidget(parent, peer, lang(lng_profile_shared_media))
|
||||||
, _migrated(_history->migrateFrom()) {
|
, _history(App::history(peer))
|
||||||
|
, _migrated(_history->migrateFrom())
|
||||||
|
{
|
||||||
auto observeEvents = Notify::PeerUpdate::Flag::SharedMediaChanged
|
auto observeEvents = Notify::PeerUpdate::Flag::SharedMediaChanged
|
||||||
| Notify::PeerUpdate::Flag::UserCommonChatsChanged;
|
| Notify::PeerUpdate::Flag::UserCommonChatsChanged;
|
||||||
subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(observeEvents, [this](const Notify::PeerUpdate &update) {
|
subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(observeEvents, [this](const Notify::PeerUpdate &update) {
|
||||||
|
|
Loading…
Reference in New Issue