mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: make it build
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include "data/data_file_origin.h"
|
||||
#include "data/data_session.h"
|
||||
#include "main/main_session.h"
|
||||
#include "settings/settings_chat.h"
|
||||
#include "settings/sections/settings_chat.h"
|
||||
#include "styles/style_layers.h"
|
||||
#include "styles/style_settings.h"
|
||||
#include "ui/vertical_list.h"
|
||||
|
||||
@@ -65,7 +65,7 @@ rpl::producer<QString> AyuFiltersList::title() {
|
||||
AyuFiltersList::AyuFiltersList(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> controller)
|
||||
: Section(parent), _controller(controller), _content(Ui::CreateChild<Ui::VerticalLayout>(this)),
|
||||
: Section(parent, controller), _controller(controller), _content(Ui::CreateChild<Ui::VerticalLayout>(this)),
|
||||
shadowBan(_controller->shadowBan) {
|
||||
if (_controller->dialogId.has_value()) {
|
||||
dialogId = _controller->dialogId.value();
|
||||
|
||||
@@ -49,7 +49,7 @@ rpl::producer<QString> AyuAppearance::title() {
|
||||
AyuAppearance::AyuAppearance(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> controller)
|
||||
: Section(parent) {
|
||||
: Section(parent, controller) {
|
||||
setupContent(controller);
|
||||
}
|
||||
|
||||
|
||||
@@ -500,7 +500,7 @@ rpl::producer<QString> AyuGhost::title() {
|
||||
AyuGhost::AyuGhost(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> controller)
|
||||
: Section(parent)
|
||||
: Section(parent, controller)
|
||||
, _controller(controller) {
|
||||
setupContent(controller);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ rpl::producer<QString> AyuChats::title() {
|
||||
AyuChats::AyuChats(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> controller)
|
||||
: Section(parent) {
|
||||
: Section(parent, controller) {
|
||||
setupContent(controller);
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ void AyuFilters::fillTopBarMenu(const Ui::Menu::MenuCallback &addAction) {
|
||||
AyuFilters::AyuFilters(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> controller)
|
||||
: Section(parent) {
|
||||
: Section(parent, controller) {
|
||||
setupContent(controller);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ rpl::producer<QString> AyuGeneral::title() {
|
||||
AyuGeneral::AyuGeneral(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> controller)
|
||||
: Section(parent) {
|
||||
: Section(parent, controller) {
|
||||
setupContent(controller);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ rpl::producer<QString> AyuMain::title() {
|
||||
AyuMain::AyuMain(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> controller)
|
||||
: Section(parent) {
|
||||
: Section(parent, controller) {
|
||||
setupContent(controller);
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ rpl::producer<QString> AyuOther::title() {
|
||||
AyuOther::AyuOther(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> controller)
|
||||
: Section(parent) {
|
||||
: Section(parent, controller) {
|
||||
setupContent(controller);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,12 +11,17 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "settings/sections/settings_chat.h"
|
||||
#include "settings/sections/settings_main.h"
|
||||
|
||||
// AyuGram includes
|
||||
#include "ayu/ui/settings/settings_filters.h"
|
||||
|
||||
|
||||
namespace Settings {
|
||||
|
||||
bool HasMenu(Type type) {
|
||||
return (type == ::Settings::CloudPasswordEmailConfirmId())
|
||||
|| (type == MainId())
|
||||
|| (type == ChatId());
|
||||
|| (type == ChatId())
|
||||
|| (type == AyuFilters::Id());
|
||||
}
|
||||
|
||||
} // namespace Settings
|
||||
|
||||
+1
-1
Submodule Telegram/lib_tl updated: 6a1bf6bb45...1bd2939915
+1
-1
Submodule Telegram/lib_ui updated: bd0dd90b29...d4b56d1496
Reference in New Issue
Block a user