1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

Keep the scripts settings page open

This commit is contained in:
uramer 2022-06-07 16:18:13 +02:00
parent 598312e391
commit fa72e14d92

View file

@ -788,7 +788,7 @@ namespace MWGui
void SettingsWindow::renderScriptSettings()
{
mScriptAdapter->detach();
mCurrentPage = -1;
mScriptList->removeAllItems();
mScriptView->setCanvasSize({0, 0});
@ -824,6 +824,9 @@ namespace MWGui
mScriptFilter->setVisible(!disabled);
mScriptList->setVisible(!disabled);
mScriptBox->setVisible(!disabled);
LuaUi::attachPageAt(mCurrentPage, mScriptAdapter);
mScriptView->setCanvasSize(mScriptAdapter->getSize());
}
void SettingsWindow::onScriptFilterChange(MyGUI::EditBox*)