Version 4.11.2: Fix build with Xcode.
This commit is contained in:
parent
a7b60c43b5
commit
7808cc6d41
|
@ -1540,7 +1540,7 @@ void AttachWebView::confirmAddToMenu(
|
||||||
const auto disclaimer = !disclaimerAccepted(bot);
|
const auto disclaimer = !disclaimerAccepted(bot);
|
||||||
const auto done = [=](Fn<void()> close) {
|
const auto done = [=](Fn<void()> close) {
|
||||||
const auto state = (disclaimer
|
const auto state = (disclaimer
|
||||||
|| (*allowed) && (*allowed)->checked())
|
|| ((*allowed) && (*allowed)->checked()))
|
||||||
? ToggledState::AllowedToWrite
|
? ToggledState::AllowedToWrite
|
||||||
: ToggledState::Added;
|
: ToggledState::Added;
|
||||||
toggleInMenu(bot.user, state, [=] {
|
toggleInMenu(bot.user, state, [=] {
|
||||||
|
|
Loading…
Reference in New Issue