mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-21 18:52: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->SetOrientation(Utils::GetOrientation());
|
||||
{
|
||||
auto revealer = Widget::Create<Revealer>();
|
||||
std::unique_ptr<Revealer> revealer = nullptr;
|
||||
if (!Config::Get().sensorTooltips)
|
||||
{
|
||||
revealer = Widget::Create<Revealer>();
|
||||
revealer->SetTransition({Utils::GetTransitionType(SideToDefaultTransition(side)), 500});
|
||||
// Add event to eventbox for the revealer to open
|
||||
eventBox->SetHoverFn(
|
||||
|
@ -666,7 +667,7 @@ namespace Bar
|
|||
{
|
||||
Utils::SetTransform(*devText, {-1, true, Alignment::Fill, 6, 0});
|
||||
}
|
||||
else if(RotatedIcons())
|
||||
else if (RotatedIcons())
|
||||
{
|
||||
Utils::SetTransform(*devText, {}, 6, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue