mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
fix: crash on creating tab bars
This commit is contained in:
parent
144176a37a
commit
45c6d01fbe
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,8 @@
|
|||
#include <pixman.h>
|
||||
|
||||
#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) {
|
||||
this->focused
|
||||
|
@ -52,6 +54,8 @@ Hy3TabBarEntry::Hy3TabBarEntry(Hy3TabBar& tab_bar, Hy3Node& node): tab_bar(tab_b
|
|||
|
||||
this->vertical_pos = 0.0;
|
||||
this->fade_opacity = 1.0;
|
||||
|
||||
this->texture = makeShared<CTexture>();
|
||||
}
|
||||
|
||||
bool Hy3TabBarEntry::operator==(const Hy3Node& node) const { return this->node == node; }
|
||||
|
|
Loading…
Add table
Reference in a new issue