2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Add cover to settings main section.

This commit is contained in:
John Preston
2018-09-05 22:39:35 +03:00
parent f0d092f126
commit a7725f03bb
8 changed files with 59 additions and 18 deletions

View File

@@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "info/settings/info_settings_widget.h"
#include "info/info_memento.h"
#include "info/info_controller.h"
#include "settings/settings_common.h"
namespace Info {
@@ -41,8 +42,11 @@ Widget::Widget(
: ContentWidget(parent, controller)
, _self(controller->key().settingsSelf())
, _type(controller->section().settingsType()) {
const auto inner = setInnerWidget(
::Settings::CreateSection(_type, this, _self));
const auto inner = setInnerWidget(::Settings::CreateSection(
_type,
this,
controller->parentController(),
_self));
inner->sectionShowOther(
) | rpl::start_with_next([=](Type type) {
this->controller()->showSettings(type);