fix: crash on creating tab bars

This commit is contained in:
outfoxxed 2024-06-10 02:48:47 -07:00
parent 144176a37a
commit 45c6d01fbe
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -11,6 +11,8 @@
#include <pixman.h> #include <pixman.h>
#include "globals.hpp" #include "globals.hpp"
#include "src/helpers/memory/SharedPtr.hpp"
#include "src/render/Texture.hpp"
Hy3TabBarEntry::Hy3TabBarEntry(Hy3TabBar& tab_bar, Hy3Node& node): tab_bar(tab_bar), node(node) { Hy3TabBarEntry::Hy3TabBarEntry(Hy3TabBar& tab_bar, Hy3Node& node): tab_bar(tab_bar), node(node) {
this->focused this->focused
@ -52,6 +54,8 @@ Hy3TabBarEntry::Hy3TabBarEntry(Hy3TabBar& tab_bar, Hy3Node& node): tab_bar(tab_b
this->vertical_pos = 0.0; this->vertical_pos = 0.0;
this->fade_opacity = 1.0; this->fade_opacity = 1.0;
this->texture = makeShared<CTexture>();
} }
bool Hy3TabBarEntry::operator==(const Hy3Node& node) const { return this->node == node; } bool Hy3TabBarEntry::operator==(const Hy3Node& node) const { return this->node == node; }