Overlay: I forgot about pop_document()

This in turn fixes a bug that I was about to bother encounter about, smh
This commit is contained in:
Irastris
2026-04-30 21:54:52 -04:00
parent 57061fba38
commit dca3e2eba6
3 changed files with 3 additions and 14 deletions
+1 -6
View File
@@ -214,17 +214,12 @@ protected:
private:
void open_overlay() {
auto* openerDocument = mRoot != nullptr ? mRoot->GetOwnerDocument() : nullptr;
if (openerDocument != nullptr) {
openerDocument->Hide();
}
auto& overlay = push_document(std::make_unique<Overlay>(OverlayProps{
push_document(std::make_unique<Overlay>(OverlayProps{
.option = mOption,
.title = mTitle,
.helpText = mHelpText,
.valueMin = mValueMin,
.valueMax = mValueMax,
.openerDocument = openerDocument,
}));
}