mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fix: make it build
This commit is contained in:
parent
409eedf58d
commit
a3d87ff26a
8 changed files with 6 additions and 9 deletions
|
@ -13,14 +13,12 @@
|
||||||
namespace AyuFeatures::StreamerMode::Impl {
|
namespace AyuFeatures::StreamerMode::Impl {
|
||||||
|
|
||||||
void enableHook() {
|
void enableHook() {
|
||||||
auto handle = Core::App().activeWindow()->widget()->psHwnd();
|
|
||||||
Core::App().enumerateWindows([&](not_null<Window::Controller*> w) {
|
Core::App().enumerateWindows([&](not_null<Window::Controller*> w) {
|
||||||
SetWindowDisplayAffinity(w->widget()->psHwnd(), WDA_EXCLUDEFROMCAPTURE);
|
SetWindowDisplayAffinity(w->widget()->psHwnd(), WDA_EXCLUDEFROMCAPTURE);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void disableHook() {
|
void disableHook() {
|
||||||
auto handle = Core::App().activeWindow()->widget()->psHwnd();
|
|
||||||
Core::App().enumerateWindows([&](not_null<Window::Controller*> w) {
|
Core::App().enumerateWindows([&](not_null<Window::Controller*> w) {
|
||||||
SetWindowDisplayAffinity(w->widget()->psHwnd(), WDA_NONE);
|
SetWindowDisplayAffinity(w->widget()->psHwnd(), WDA_NONE);
|
||||||
});
|
});
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
#include <ayu/ayu_settings.h>
|
#include <ayu/ayu_settings.h>
|
||||||
|
|
||||||
#include "ayu/ayu_fonts.h"
|
#include "ayu/ayu_fonts.h"
|
||||||
|
#include "ui/ui_utility.h"
|
||||||
|
|
||||||
struct Font
|
struct Font
|
||||||
{
|
{
|
||||||
|
|
|
@ -57,6 +57,8 @@
|
||||||
#include <QtGui/QClipboard>
|
#include <QtGui/QClipboard>
|
||||||
#include <QtWidgets/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
|
|
||||||
|
#include "ui/ui_utility.h"
|
||||||
|
|
||||||
namespace EditedLog {
|
namespace EditedLog {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
|
|
@ -1178,8 +1178,6 @@ void SetupSendConfirmations(not_null<Ui::VerticalLayout*> container) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetupMarks(not_null<Ui::VerticalLayout*> container) {
|
void SetupMarks(not_null<Ui::VerticalLayout*> container) {
|
||||||
auto settings = &AyuSettings::getInstance();
|
|
||||||
|
|
||||||
AddButtonWithLabel(
|
AddButtonWithLabel(
|
||||||
container,
|
container,
|
||||||
tr::ayu_DeletedMarkText(),
|
tr::ayu_DeletedMarkText(),
|
||||||
|
|
|
@ -650,9 +650,7 @@ void searchUser(ID userId, Main::Session *session, bool searchUserFlag, bool cac
|
||||||
session->data().processUsers(d.vusers());
|
session->data().processUsers(d.vusers());
|
||||||
|
|
||||||
auto &v = d.vresults().v;
|
auto &v = d.vresults().v;
|
||||||
auto queryId = d.vquery_id().v;
|
|
||||||
|
|
||||||
auto added = 0;
|
|
||||||
for (const auto &res : v) {
|
for (const auto &res : v) {
|
||||||
const auto message = res.match(
|
const auto message = res.match(
|
||||||
[&](const MTPDbotInlineResult &data)
|
[&](const MTPDbotInlineResult &data)
|
||||||
|
|
|
@ -535,6 +535,7 @@ void GifsListWidget::selectInlineResult(
|
||||||
.document = document,
|
.document = document,
|
||||||
.options = options,
|
.options = options,
|
||||||
.messageSendingFrom = from,
|
.messageSendingFrom = from,
|
||||||
|
.caption = std::move(caption),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -546,7 +547,6 @@ void GifsListWidget::selectInlineResult(
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
sendGIFCallback();
|
sendGIFCallback();
|
||||||
.caption = std::move(caption),
|
|
||||||
}
|
}
|
||||||
} else if (!preview.usingThumbnail()) {
|
} else if (!preview.usingThumbnail()) {
|
||||||
if (preview.loading()) {
|
if (preview.loading()) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 11c8ae47ff9c9d69b0470700fff9ed924a97acd3
|
Subproject commit 669b16f8c4bcfd357d96bf5044789bdea39b1e1c
|
|
@ -1 +1 @@
|
||||||
Subproject commit 817486ca25ba0c5a84c86cd73323fd3461cacfa1
|
Subproject commit 05601adb9f045f54ca8377d0555dae6d5ce48c7d
|
Loading…
Add table
Reference in a new issue