mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Added ability to force open media viewer from overview layout.
This commit is contained in:
@@ -191,13 +191,14 @@ void ItemBase::ensureCheckboxCreated() {
|
||||
}
|
||||
|
||||
void RadialProgressItem::setDocumentLinks(
|
||||
not_null<DocumentData*> document) {
|
||||
not_null<DocumentData*> document,
|
||||
bool forceOpen) {
|
||||
const auto context = parent()->fullId();
|
||||
setLinks(
|
||||
std::make_shared<DocumentOpenClickHandler>(
|
||||
document,
|
||||
crl::guard(this, [=](FullMsgId id) {
|
||||
delegate()->openDocument(document, id);
|
||||
delegate()->openDocument(document, id, forceOpen);
|
||||
}),
|
||||
context),
|
||||
std::make_shared<DocumentSaveClickHandler>(document, context),
|
||||
|
Reference in New Issue
Block a user