mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(),
|
box->verticalLayout(),
|
||||||
tr::lng_qr_box_transparent_background(),
|
tr::lng_qr_box_transparent_background(),
|
||||||
st::settingsButtonNoIcon));
|
st::settingsButtonNoIcon));
|
||||||
backgroundToggle->toggleOn(state->backgroundToggled.value(), true);
|
backgroundToggle->toggleOn(
|
||||||
|
state->backgroundToggled.value() | rpl::map(!rpl::mappers::_1),
|
||||||
|
true);
|
||||||
backgroundToggle->setClickedCallback([=] {
|
backgroundToggle->setClickedCallback([=] {
|
||||||
state->backgroundToggled = !state->backgroundToggled.current();
|
state->backgroundToggled = !state->backgroundToggled.current();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue