mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Allow replacing first gift in crafting.
This commit is contained in:
@@ -381,13 +381,9 @@ AbstractButton *MakeRemoveButton(
|
||||
},
|
||||
}, GiftButton::Mode::CraftPreview);
|
||||
entry.button->show();
|
||||
if (index > 0) {
|
||||
entry.button->setClickedCallback([=] {
|
||||
state->editRequests.fire_copy(index);
|
||||
});
|
||||
} else {
|
||||
entry.button->setAttribute(Qt::WA_TransparentForMouseEvents);
|
||||
}
|
||||
entry.button->setClickedCallback([=] {
|
||||
state->editRequests.fire_copy(index);
|
||||
});
|
||||
entry.button->setGeometry(
|
||||
geometry,
|
||||
state->delegate.buttonExtend());
|
||||
|
||||
Reference in New Issue
Block a user