mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Fixed behavior of checkbox to remove background from QR in share QR box.
This commit is contained in:
parent
e00e562b5f
commit
9064f3ba4b
1 changed files with 3 additions and 1 deletions
|
@ -819,7 +819,9 @@ void FillPeerQrBox(
|
|||
box->verticalLayout(),
|
||||
tr::lng_qr_box_transparent_background(),
|
||||
st::settingsButtonNoIcon));
|
||||
backgroundToggle->toggleOn(state->backgroundToggled.value(), true);
|
||||
backgroundToggle->toggleOn(
|
||||
state->backgroundToggled.value() | rpl::map(!rpl::mappers::_1),
|
||||
true);
|
||||
backgroundToggle->setClickedCallback([=] {
|
||||
state->backgroundToggled = !state->backgroundToggled.current();
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue