Allow replacing first gift in crafting.

This commit is contained in:
John Preston
2026-02-13 16:10:10 +04:00
parent f4dec97178
commit 660e753ce7
@@ -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());