fix: make it build

This commit is contained in:
AlexeyZavar
2026-02-19 16:31:18 +03:00
parent 8bfd3bee99
commit a671960ba7
12 changed files with 17 additions and 12 deletions
@@ -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