mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix build with GCC.
This commit is contained in:
@@ -349,7 +349,6 @@ void BuildWindowTitleSection(SectionBuilder &builder) {
|
|||||||
|
|
||||||
void BuildSystemIntegrationSection(SectionBuilder &builder) {
|
void BuildSystemIntegrationSection(SectionBuilder &builder) {
|
||||||
const auto controller = builder.controller();
|
const auto controller = builder.controller();
|
||||||
const auto container = builder.container();
|
|
||||||
const auto settings = &Core::App().settings();
|
const auto settings = &Core::App().settings();
|
||||||
|
|
||||||
builder.addDivider();
|
builder.addDivider();
|
||||||
@@ -504,6 +503,7 @@ void BuildSystemIntegrationSection(SectionBuilder &builder) {
|
|||||||
#elif defined Q_OS_WIN // Q_OS_MAC
|
#elif defined Q_OS_WIN // Q_OS_MAC
|
||||||
using Behavior = Core::Settings::CloseBehavior;
|
using Behavior = Core::Settings::CloseBehavior;
|
||||||
|
|
||||||
|
const auto container = builder.container();
|
||||||
const auto closeToTaskbarShown = container
|
const auto closeToTaskbarShown = container
|
||||||
? container->lifetime().make_state<rpl::variable<bool>>(
|
? container->lifetime().make_state<rpl::variable<bool>>(
|
||||||
!Core::App().tray().has())
|
!Core::App().tray().has())
|
||||||
|
|||||||
@@ -1383,15 +1383,6 @@ void SetupStickersEmoji(
|
|||||||
checked,
|
checked,
|
||||||
st::settingsCheckbox);
|
st::settingsCheckbox);
|
||||||
};
|
};
|
||||||
const auto add = [&](const QString &label, bool checked, auto &&handle) {
|
|
||||||
return inner->add(
|
|
||||||
checkbox(label, checked),
|
|
||||||
st::settingsCheckboxPadding
|
|
||||||
)->checkedChanges(
|
|
||||||
) | rpl::on_next(
|
|
||||||
std::move(handle),
|
|
||||||
inner->lifetime());
|
|
||||||
};
|
|
||||||
const auto addWithReturn = [&](
|
const auto addWithReturn = [&](
|
||||||
const QString &label,
|
const QString &label,
|
||||||
bool checked,
|
bool checked,
|
||||||
|
|||||||
@@ -1266,7 +1266,6 @@ void BuildPremiumSectionContent(
|
|||||||
SectionBuilder &builder,
|
SectionBuilder &builder,
|
||||||
std::shared_ptr<PremiumState> state) {
|
std::shared_ptr<PremiumState> state) {
|
||||||
const auto controller = builder.controller();
|
const auto controller = builder.controller();
|
||||||
const auto session = builder.session();
|
|
||||||
|
|
||||||
if (controller && state) {
|
if (controller && state) {
|
||||||
builder.add([controller, state](const WidgetContext &ctx) {
|
builder.add([controller, state](const WidgetContext &ctx) {
|
||||||
|
|||||||
Reference in New Issue
Block a user