1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-08 22:34:33 +00:00

update container window when item is added or removed

This commit is contained in:
Kindi 2025-04-01 13:03:11 +08:00
parent 15ceee4b1a
commit a9870bbcde

View file

@ -160,10 +160,14 @@ namespace MWGui
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCloseButton);
setTitle(container.getClass().getName(container));
mPtr.getClass().getContainerStore(mPtr).setContListener(this);
}
void ContainerWindow::updateItemView()
{
mItemView->update();
}
void ContainerWindow::resetReference()
{
ReferenceInterface::resetReference();
@ -322,9 +326,4 @@ namespace MWGui
if (mModel && mModel->usesContainer(ptr))
MWBase::Environment::get().getWindowManager()->removeGuiMode(GM_Container);
}
void ContainerWindow::updateItemView()
{
mItemView->update();
}
}