mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Wrapped raw SectionMemento with unique_ptr.
This commit is contained in:
@@ -1000,13 +1000,15 @@ void Controller::fillManageSection() {
|
||||
st::infoIconBlacklist);
|
||||
}
|
||||
if (hasRecentActions) {
|
||||
auto callback = [=] {
|
||||
_navigation->showSection(
|
||||
std::make_unique<AdminLog::SectionMemento>(channel));
|
||||
};
|
||||
AddButtonWithCount(
|
||||
_controls.buttonsLayout,
|
||||
tr::lng_manage_peer_recent_actions(),
|
||||
rpl::single(QString()), //Empty count.
|
||||
[=] {
|
||||
_navigation->showSection(AdminLog::SectionMemento(channel));
|
||||
},
|
||||
std::move(callback),
|
||||
st::infoIconRecentActions);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user