mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Add rpl interface to RadiobuttonGroup.
This commit is contained in:
@@ -1018,7 +1018,7 @@ void SetupChannelBox::prepare() {
|
||||
cancel);
|
||||
|
||||
connect(_link, &Ui::MaskedInputField::changed, [=] { handleChange(); });
|
||||
_link->setVisible(_privacyGroup->value() == Privacy::Public);
|
||||
_link->setVisible(_privacyGroup->current() == Privacy::Public);
|
||||
|
||||
_privacyGroup->setChangedCallback([=](Privacy value) {
|
||||
privacyChanged(value);
|
||||
@@ -1063,7 +1063,7 @@ void SetupChannelBox::updateMaxHeight() {
|
||||
: 0)
|
||||
+ st::newGroupPadding.bottom();
|
||||
if (!_channel->isMegagroup()
|
||||
|| _privacyGroup->value() == Privacy::Public) {
|
||||
|| _privacyGroup->current() == Privacy::Public) {
|
||||
newHeight += st::newGroupLinkPadding.top()
|
||||
+ _link->height()
|
||||
+ st::newGroupLinkPadding.bottom();
|
||||
@@ -1264,7 +1264,7 @@ void SetupChannelBox::save() {
|
||||
};
|
||||
if (_saveRequestId) {
|
||||
return;
|
||||
} else if (_privacyGroup->value() == Privacy::Private) {
|
||||
} else if (_privacyGroup->current() == Privacy::Private) {
|
||||
closeBox();
|
||||
} else {
|
||||
const auto link = _link->text().trimmed();
|
||||
|
Reference in New Issue
Block a user