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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user