1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-23 05:56:36 +00:00

also update companion window and tradewindow

This commit is contained in:
Kindi 2025-04-03 11:26:56 +08:00
parent a9870bbcde
commit bdf025a532

View file

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