fixed too much usernames box

This commit is contained in:
John Preston 2015-09-24 21:46:38 +03:00
parent bafb9711a0
commit bef993e2fb
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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);