Disable some bot editing items while there is no design.
This commit is contained in:
parent
64125f0cc8
commit
7dfed2a012
|
@ -310,9 +310,11 @@ private:
|
||||||
void fillPendingRequestsButton();
|
void fillPendingRequestsButton();
|
||||||
|
|
||||||
void fillBotUsernamesButton();
|
void fillBotUsernamesButton();
|
||||||
|
#if 0 // Enable after design improvements.
|
||||||
void fillBotEditIntroButton();
|
void fillBotEditIntroButton();
|
||||||
void fillBotEditCommandsButton();
|
void fillBotEditCommandsButton();
|
||||||
void fillBotEditSettingsButton();
|
void fillBotEditSettingsButton();
|
||||||
|
#endif
|
||||||
|
|
||||||
void submitTitle();
|
void submitTitle();
|
||||||
void submitDescription();
|
void submitDescription();
|
||||||
|
@ -1010,9 +1012,11 @@ void Controller::fillManageSection() {
|
||||||
container,
|
container,
|
||||||
st::editPeerTopButtonsLayoutSkipCustomTop);
|
st::editPeerTopButtonsLayoutSkipCustomTop);
|
||||||
fillBotUsernamesButton();
|
fillBotUsernamesButton();
|
||||||
|
#if 0 // Enable after design improvements.
|
||||||
fillBotEditIntroButton();
|
fillBotEditIntroButton();
|
||||||
fillBotEditCommandsButton();
|
fillBotEditCommandsButton();
|
||||||
fillBotEditSettingsButton();
|
fillBotEditSettingsButton();
|
||||||
|
#endif
|
||||||
Settings::AddSkip(
|
Settings::AddSkip(
|
||||||
container,
|
container,
|
||||||
st::editPeerTopButtonsLayoutSkipCustomBottom);
|
st::editPeerTopButtonsLayoutSkipCustomBottom);
|
||||||
|
@ -1410,6 +1414,7 @@ void Controller::fillBotUsernamesButton() {
|
||||||
{ &st::infoRoundedIconInviteLinks, Settings::kIconLightOrange });
|
{ &st::infoRoundedIconInviteLinks, Settings::kIconLightOrange });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 // Enable after design improvements.
|
||||||
void Controller::fillBotEditIntroButton() {
|
void Controller::fillBotEditIntroButton() {
|
||||||
Expects(_isBot);
|
Expects(_isBot);
|
||||||
|
|
||||||
|
@ -1445,6 +1450,7 @@ void Controller::fillBotEditSettingsButton() {
|
||||||
[=] { toggleBotManager(user->username()); },
|
[=] { toggleBotManager(user->username()); },
|
||||||
{ &st::settingsIconChat, Settings::kIconLightBlue });
|
{ &st::settingsIconChat, Settings::kIconLightBlue });
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void Controller::submitTitle() {
|
void Controller::submitTitle() {
|
||||||
Expects(_controls.title != nullptr);
|
Expects(_controls.title != nullptr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user