From 01054858a46aea7548abdce9bbbd9e924aae5f3e Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 25 May 2019 16:44:15 +0200 Subject: [PATCH] Url auth checkboxes checked by default. --- Telegram/SourceFiles/boxes/url_auth_box.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/url_auth_box.cpp b/Telegram/SourceFiles/boxes/url_auth_box.cpp index bf0af8662b..2af7b2ed6c 100644 --- a/Telegram/SourceFiles/boxes/url_auth_box.cpp +++ b/Telegram/SourceFiles/boxes/url_auth_box.cpp @@ -157,7 +157,7 @@ not_null UrlAuthBox::setupContent( object_ptr( result, QString(), - false, + true, st::urlAuthCheckbox), style::margins( st::boxPadding.left(), @@ -187,6 +187,9 @@ not_null UrlAuthBox::setupContent( ) | rpl::then( auth->checkedChanges() ) | rpl::start_with_next([=](bool checked) { + if (!checked) { + allow->setChecked(false); + } allow->setDisabled(!checked); }, auth->lifetime()); }