mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-19 16:35:49 +09:00
Move to settings page on settings button pressed
This commit is contained in:
@@ -15,6 +15,14 @@ namespace gsr {
|
||||
}
|
||||
|
||||
void Page::draw(mgl::Window &window) {
|
||||
for(auto &widget : widgets) {
|
||||
if(widget->move_to_top) {
|
||||
widget->move_to_top = false;
|
||||
std::swap(widget, widgets.back());
|
||||
}
|
||||
widget->draw(window);
|
||||
}
|
||||
|
||||
for(auto &widget : widgets) {
|
||||
widget->draw(window);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user