mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed build with Xcode.
This commit is contained in:
parent
7e208453c7
commit
2d75f9e752
3 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ public:
|
||||||
bool alwaysShowOutTimestamp() override {
|
bool alwaysShowOutTimestamp() override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool hasTextForCopy() const {
|
bool hasTextForCopy() const override {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ public:
|
||||||
void unloadHeavyPart() override;
|
void unloadHeavyPart() override;
|
||||||
|
|
||||||
void refreshLink() override;
|
void refreshLink() override;
|
||||||
bool hasTextForCopy() const {
|
bool hasTextForCopy() const override {
|
||||||
return isEmojiSticker();
|
return isEmojiSticker();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -778,7 +778,7 @@ void Panel::openPopup(const QJsonObject &args) {
|
||||||
{ "destructive", Type::Destructive },
|
{ "destructive", Type::Destructive },
|
||||||
};
|
};
|
||||||
auto buttons = std::vector<Webview::PopupArgs::Button>();
|
auto buttons = std::vector<Webview::PopupArgs::Button>();
|
||||||
for (const auto &button : args["buttons"].toArray()) {
|
for (const auto button : args["buttons"].toArray()) {
|
||||||
const auto fields = button.toObject();
|
const auto fields = button.toObject();
|
||||||
const auto i = types.find(fields["type"].toString());
|
const auto i = types.find(fields["type"].toString());
|
||||||
if (i == end(types)) {
|
if (i == end(types)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue