Skip to content

Commit 04925bb

Browse files
committed
Fix UI bug when closing and opening UI
1 parent 878ffbd commit 04925bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Plateau2/Plateau2.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ Plateau2::Plateau2(const InstanceInfo& info)
115115
pGraphics->OpenURL("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
116116
}
117117

118+
//Reset the page to the main page when the UI is created
119+
currentPage = 0;
120+
118121
pGraphics->AttachCornerResizer(EUIResizerMode::Scale, false);
119122
pGraphics->AttachSVGBackground(BACKGROUND_FN);
120123

0 commit comments

Comments
 (0)