mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-01 14:50:24 +00:00
fixed too much usernames box
This commit is contained in:
parent
bafb9711a0
commit
bef993e2fb
@ -1,6 +1,5 @@
|
||||
@echo OFF
|
||||
|
||||
FOR /F "tokens=1,2* delims= " %i in (Version) do set "%i=%j"
|
||||
FOR /F "tokens=1,2* delims= " %%i in (Version) do set "%%i=%%j"
|
||||
|
||||
if %DevChannel% neq 0 goto preparedev
|
||||
|
||||
|
@ -2636,7 +2636,7 @@ void SetupChannelBox::onPrivacyChange() {
|
||||
if (_public.checked()) {
|
||||
if (_tooMuchUsernames) {
|
||||
_private.setChecked(true);
|
||||
App::wnd()->replaceLayer(new ConfirmBox(lang(lng_channels_too_much_public)));
|
||||
App::wnd()->replaceLayer(new ConfirmBox(lang(lng_channels_too_much_public), true));
|
||||
return;
|
||||
}
|
||||
_link.show();
|
||||
@ -2698,7 +2698,7 @@ bool SetupChannelBox::onCheckFail(const RPCError &error) {
|
||||
if (err == "CHANNELS_ADMIN_PUBLIC_TOO_MUCH") {
|
||||
if (_existing) {
|
||||
App::wnd()->hideLayer(true);
|
||||
App::wnd()->showLayer(new ConfirmBox(lang(lng_channels_too_much_public_existing)), true);
|
||||
App::wnd()->showLayer(new ConfirmBox(lang(lng_channels_too_much_public_existing), true), true);
|
||||
} else {
|
||||
_tooMuchUsernames = true;
|
||||
_private.setChecked(true);
|
||||
@ -2727,7 +2727,7 @@ bool SetupChannelBox::onFirstCheckFail(const RPCError &error) {
|
||||
if (err == "CHANNELS_ADMIN_PUBLIC_TOO_MUCH") {
|
||||
if (_existing) {
|
||||
App::wnd()->hideLayer(true);
|
||||
App::wnd()->showLayer(new ConfirmBox(lang(lng_channels_too_much_public_existing)), true);
|
||||
App::wnd()->showLayer(new ConfirmBox(lang(lng_channels_too_much_public_existing), true), true);
|
||||
} else {
|
||||
_tooMuchUsernames = true;
|
||||
_private.setChecked(true);
|
||||
|
Loading…
Reference in New Issue
Block a user