1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Revert changes to special 'Proceed' button handling

This commit is contained in:
Zenon Seth 2025-05-27 15:37:34 +01:00
parent da7897a822
commit bcf5e5a1cc

View file

@ -4849,9 +4849,14 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
s32 caller_id = event.GUIEvent.Caller->getID();
if (caller_id == 257) {
acceptInput(quit_mode_accept);
m_text_dst->gotText(L"ExitButton");
quitMenu();
if (m_allowclose) {
acceptInput(quit_mode_accept);
quitMenu();
}
else {
acceptInput();
m_text_dst->gotText(L"ExitButton");
}
return true;
}