mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 16:35:20 +00:00
GUI: Fix caching of Edit Game dialog layout
This commit is contained in:
parent
4ee2bdb6a7
commit
3891055214
@ -954,9 +954,9 @@ void OptionsContainerWidget::reflowLayout() {
|
||||
Widget::reflowLayout();
|
||||
|
||||
if (!_dialogLayout.empty()) {
|
||||
if (!g_gui.xmlEval()->hasDialog(_dialogLayout)) {
|
||||
defineLayout(*g_gui.xmlEval(), _dialogLayout, _name);
|
||||
}
|
||||
// Since different engines have different number of options,
|
||||
// we have to create it every time.
|
||||
defineLayout(*g_gui.xmlEval(), _dialogLayout, _name);
|
||||
|
||||
if (!_scrollContainer) {
|
||||
g_gui.xmlEval()->reflowDialogLayout(_dialogLayout, _firstWidget);
|
||||
|
Loading…
x
Reference in New Issue
Block a user