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) {
|
||||
const auto controller = builder.controller();
|
||||
const auto container = builder.container();
|
||||
const auto settings = &Core::App().settings();
|
||||
|
||||
builder.addDivider();
|
||||
@@ -504,6 +503,7 @@ void BuildSystemIntegrationSection(SectionBuilder &builder) {
|
||||
#elif defined Q_OS_WIN // Q_OS_MAC
|
||||
using Behavior = Core::Settings::CloseBehavior;
|
||||
|
||||
const auto container = builder.container();
|
||||
const auto closeToTaskbarShown = container
|
||||
? container->lifetime().make_state<rpl::variable<bool>>(
|
||||
!Core::App().tray().has())
|
||||
|
||||
@@ -1383,15 +1383,6 @@ void SetupStickersEmoji(
|
||||
checked,
|
||||
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 QString &label,
|
||||
bool checked,
|
||||
|
||||
@@ -1266,7 +1266,6 @@ void BuildPremiumSectionContent(
|
||||
SectionBuilder &builder,
|
||||
std::shared_ptr<PremiumState> state) {
|
||||
const auto controller = builder.controller();
|
||||
const auto session = builder.session();
|
||||
|
||||
if (controller && state) {
|
||||
builder.add([controller, state](const WidgetContext &ctx) {
|
||||
|
||||
Reference in New Issue
Block a user