fix: make it build

This commit is contained in:
AlexeyZavar 2024-09-11 21:15:51 +03:00
parent 409eedf58d
commit a3d87ff26a
8 changed files with 6 additions and 9 deletions

View file

@ -13,14 +13,12 @@
namespace AyuFeatures::StreamerMode::Impl {
void enableHook() {
auto handle = Core::App().activeWindow()->widget()->psHwnd();
Core::App().enumerateWindows([&](not_null<Window::Controller*> w) {
SetWindowDisplayAffinity(w->widget()->psHwnd(), WDA_EXCLUDEFROMCAPTURE);
});
}
void disableHook() {
auto handle = Core::App().activeWindow()->widget()->psHwnd();
Core::App().enumerateWindows([&](not_null<Window::Controller*> w) {
SetWindowDisplayAffinity(w->widget()->psHwnd(), WDA_NONE);
});

View file

@ -45,6 +45,7 @@
#include <ayu/ayu_settings.h>
#include "ayu/ayu_fonts.h"
#include "ui/ui_utility.h"
struct Font
{

View file

@ -57,6 +57,8 @@
#include <QtGui/QClipboard>
#include <QtWidgets/QApplication>
#include "ui/ui_utility.h"
namespace EditedLog {
namespace {

View file

@ -1178,8 +1178,6 @@ void SetupSendConfirmations(not_null<Ui::VerticalLayout*> container) {
}
void SetupMarks(not_null<Ui::VerticalLayout*> container) {
auto settings = &AyuSettings::getInstance();
AddButtonWithLabel(
container,
tr::ayu_DeletedMarkText(),

View file

@ -650,9 +650,7 @@ void searchUser(ID userId, Main::Session *session, bool searchUserFlag, bool cac
session->data().processUsers(d.vusers());
auto &v = d.vresults().v;
auto queryId = d.vquery_id().v;
auto added = 0;
for (const auto &res : v) {
const auto message = res.match(
[&](const MTPDbotInlineResult &data)

View file

@ -535,6 +535,7 @@ void GifsListWidget::selectInlineResult(
.document = document,
.options = options,
.messageSendingFrom = from,
.caption = std::move(caption),
});
});
@ -546,7 +547,6 @@ void GifsListWidget::selectInlineResult(
}));
} else {
sendGIFCallback();
.caption = std::move(caption),
}
} else if (!preview.usingThumbnail()) {
if (preview.loading()) {

@ -1 +1 @@
Subproject commit 11c8ae47ff9c9d69b0470700fff9ed924a97acd3
Subproject commit 669b16f8c4bcfd357d96bf5044789bdea39b1e1c

@ -1 +1 @@
Subproject commit 817486ca25ba0c5a84c86cd73323fd3461cacfa1
Subproject commit 05601adb9f045f54ca8377d0555dae6d5ce48c7d