1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Merge branch 'keep_settings_page' into 'master'

Keep the scripts settings page open

See merge request OpenMW/openmw!1987
This commit is contained in:
Petr Mikheev 2022-06-08 10:31:34 +00:00
commit 1650dacfca

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*)