mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 14:53:45 +01:00
guiVolumeChange: Fix child not being removed
This commit is contained in:
parent
37923920a0
commit
cc610c74a7
@ -58,6 +58,9 @@ void GUIVolumeChange::removeChildren()
|
|||||||
|
|
||||||
if (gui::IGUIElement *e = getElementFromId(ID_soundSlider))
|
if (gui::IGUIElement *e = getElementFromId(ID_soundSlider))
|
||||||
e->remove();
|
e->remove();
|
||||||
|
|
||||||
|
if (gui::IGUIElement *e = getElementFromId(ID_soundMuteButton))
|
||||||
|
e->remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUIVolumeChange::regenerateGui(v2u32 screensize)
|
void GUIVolumeChange::regenerateGui(v2u32 screensize)
|
||||||
@ -193,4 +196,3 @@ bool GUIVolumeChange::OnEvent(const SEvent& event)
|
|||||||
|
|
||||||
return Parent ? Parent->OnEvent(event) : false;
|
return Parent ? Parent->OnEvent(event) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user