diff --git a/src/Bar.cpp b/src/Bar.cpp index 78f04fb..0f6052c 100644 --- a/src/Bar.cpp +++ b/src/Bar.cpp @@ -423,9 +423,10 @@ namespace Bar box->SetSpacing({0, false}); box->SetOrientation(Utils::GetOrientation()); { - auto revealer = Widget::Create(); + std::unique_ptr revealer = nullptr; if (!Config::Get().sensorTooltips) { + revealer = Widget::Create(); 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); }