1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-19 19:25:18 +02:00

GUI: restore the Pause Menu after closing the Settings Menu

This commit is contained in:
SmallJoker
2025-05-02 21:26:34 +02:00
committed by GitHub
parent 893a74f9d7
commit 6f3735281f
5 changed files with 29 additions and 16 deletions

View File

@@ -55,9 +55,9 @@ private:
InputHandler *m_input;
std::unique_ptr<PauseMenuScripting> m_pause_script;
// Default: "". If other than "": Empty show_formspec packets will only
// close the formspec when the formname matches
std::string m_formname;
/// The currently open formspec that is not a submenu of the pause menu
/// FIXME: Layering is already managed by `GUIModalMenu` (`g_menumgr`), hence this
/// variable should be removed in long-term.
GUIFormSpecMenu *m_formspec = nullptr;
bool handleEmptyFormspec(const std::string &formspec, const std::string &formname);