mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 11:12:49 +00:00
Don't destroy unused Widget for SensorTooltips
We would create the Revealer and then destroy it when SensorTooltips is true
This commit is contained in:
parent
6c8f57238a
commit
1f6ad2aab7
1 changed files with 3 additions and 2 deletions
|
@ -423,9 +423,10 @@ namespace Bar
|
||||||
box->SetSpacing({0, false});
|
box->SetSpacing({0, false});
|
||||||
box->SetOrientation(Utils::GetOrientation());
|
box->SetOrientation(Utils::GetOrientation());
|
||||||
{
|
{
|
||||||
auto revealer = Widget::Create<Revealer>();
|
std::unique_ptr<Revealer> revealer = nullptr;
|
||||||
if (!Config::Get().sensorTooltips)
|
if (!Config::Get().sensorTooltips)
|
||||||
{
|
{
|
||||||
|
revealer = Widget::Create<Revealer>();
|
||||||
revealer->SetTransition({Utils::GetTransitionType(SideToDefaultTransition(side)), 500});
|
revealer->SetTransition({Utils::GetTransitionType(SideToDefaultTransition(side)), 500});
|
||||||
// Add event to eventbox for the revealer to open
|
// Add event to eventbox for the revealer to open
|
||||||
eventBox->SetHoverFn(
|
eventBox->SetHoverFn(
|
||||||
|
|
Loading…
Reference in a new issue