mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build on macOS.
This commit is contained in:
parent
1252accef7
commit
1eeba65ddb
2 changed files with 5 additions and 5 deletions
|
@ -241,7 +241,7 @@ ShareBoxResult Shown::shareBox(ShareBoxDescriptor &&descriptor) {
|
||||||
object_ptr<Ui::BoxContent>,
|
object_ptr<Ui::BoxContent>,
|
||||||
std::unique_ptr<Ui::LayerWidget>> &&layer,
|
std::unique_ptr<Ui::LayerWidget>> &&layer,
|
||||||
Ui::LayerOptions options,
|
Ui::LayerOptions options,
|
||||||
anim::type animated) const {
|
anim::type animated) const override {
|
||||||
using UniqueLayer = std::unique_ptr<Ui::LayerWidget>;
|
using UniqueLayer = std::unique_ptr<Ui::LayerWidget>;
|
||||||
using ObjectBox = object_ptr<Ui::BoxContent>;
|
using ObjectBox = object_ptr<Ui::BoxContent>;
|
||||||
const auto stack = _lookup();
|
const auto stack = _lookup();
|
||||||
|
@ -255,7 +255,7 @@ ShareBoxResult Shown::shareBox(ShareBoxDescriptor &&descriptor) {
|
||||||
stack->hideAll(animated);
|
stack->hideAll(animated);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
not_null<QWidget*> toastParent() const {
|
not_null<QWidget*> toastParent() const override {
|
||||||
return _parent.data();
|
return _parent.data();
|
||||||
}
|
}
|
||||||
bool valid() const override {
|
bool valid() const override {
|
||||||
|
|
|
@ -159,7 +159,7 @@ private:
|
||||||
[[nodiscard]] QSize computeSlideshowDimensions(
|
[[nodiscard]] QSize computeSlideshowDimensions(
|
||||||
const QVector<MTPPageBlock> &items);
|
const QVector<MTPPageBlock> &items);
|
||||||
|
|
||||||
const Options _options;
|
//const Options _options;
|
||||||
const QByteArray _fileOriginPostfix;
|
const QByteArray _fileOriginPostfix;
|
||||||
|
|
||||||
base::flat_set<QByteArray> _resources;
|
base::flat_set<QByteArray> _resources;
|
||||||
|
@ -203,8 +203,8 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
Parser::Parser(const Source &source, const Options &options)
|
Parser::Parser(const Source &source, const Options &options)
|
||||||
: _options(options)
|
: /*_options(options)
|
||||||
, _fileOriginPostfix('/' + Number(source.pageId)) {
|
, */_fileOriginPostfix('/' + Number(source.pageId)) {
|
||||||
process(source);
|
process(source);
|
||||||
_result.name = source.name;
|
_result.name = source.name;
|
||||||
_result.rtl = source.page.data().is_rtl();
|
_result.rtl = source.page.data().is_rtl();
|
||||||
|
|
Loading…
Add table
Reference in a new issue