mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-14 03:52:13 -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:
@@ -135,8 +135,7 @@ Overlay::Overlay(OverlayProps props)
|
||||
: Document("res/rml/overlay.rml"),
|
||||
mOption(props.option),
|
||||
mValueMin(props.valueMin),
|
||||
mValueMax(props.valueMax),
|
||||
mOpenerDocument(props.openerDocument) {
|
||||
mValueMax(props.valueMax) {
|
||||
if (mDocument == nullptr) {
|
||||
return;
|
||||
}
|
||||
@@ -216,10 +215,7 @@ void Overlay::dismiss() {
|
||||
return;
|
||||
}
|
||||
mDismissed = true;
|
||||
if (mOpenerDocument != nullptr) {
|
||||
mOpenerDocument->Show();
|
||||
}
|
||||
hide();
|
||||
pop_document();
|
||||
}
|
||||
|
||||
void Overlay::reset_default() {
|
||||
|
||||
Reference in New Issue
Block a user