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,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);
|
||||
});
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
#include <ayu/ayu_settings.h>
|
||||
|
||||
#include "ayu/ayu_fonts.h"
|
||||
#include "ui/ui_utility.h"
|
||||
|
||||
struct Font
|
||||
{
|
||||
|
||||
@@ -57,6 +57,8 @@
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
#include "ui/ui_utility.h"
|
||||
|
||||
namespace EditedLog {
|
||||
namespace {
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
Submodule Telegram/lib_tl updated: 11c8ae47ff...669b16f8c4
+1
-1
Submodule Telegram/lib_ui updated: 817486ca25...05601adb9f
Reference in New Issue
Block a user