2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +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

@@ -19,10 +19,11 @@ namespace Settings {
object_ptr<Section> CreateSection(
Type type,
not_null<QWidget*> parent,
not_null<Window::Controller*> controller,
UserData *self) {
switch (type) {
case Type::Main:
return object_ptr<::Settings::Main>(parent, self);
return object_ptr<::Settings::Main>(parent, controller, self);
case Type::Information:
return object_ptr<::Settings::Information>(parent, self);
case Type::Notifications: