aboutsummaryrefslogtreecommitdiff
path: root/include/gui/ScrollablePage.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-24 14:08:25 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-24 14:08:25 +0200
commitb8e6949dfb8a88c832e82f8b7e853fe0ed462da0 (patch)
tree596f3f33b44aee1feb4d28477f4270ad826434b2 /include/gui/ScrollablePage.hpp
parent54c60d9a18d103011a12939c5029dd35a8e9e200 (diff)
Remove scrollable page from gsr page, fix crash when navigating back
Diffstat (limited to 'include/gui/ScrollablePage.hpp')
-rw-r--r--include/gui/ScrollablePage.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gui/ScrollablePage.hpp b/include/gui/ScrollablePage.hpp
index 5048627..09c618f 100644
--- a/include/gui/ScrollablePage.hpp
+++ b/include/gui/ScrollablePage.hpp
@@ -1,8 +1,8 @@
#pragma once
#include "Widget.hpp"
+#include "../SafeVector.hpp"
#include <memory>
-#include <vector>
namespace gsr {
class ScrollablePage : public Widget {
@@ -20,6 +20,6 @@ namespace gsr {
void add_widget(std::unique_ptr<Widget> widget);
private:
mgl::vec2f size;
- std::vector<std::unique_ptr<Widget>> widgets;
+ SafeVector<std::unique_ptr<Widget>> widgets;
};
} \ No newline at end of file