mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-21 13:36:50 -04:00
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:
@@ -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,
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user