Make DesktopOverlay use public getter instead of explicit settings call
Using the getter is clearer and leads to less code duplication.
This commit is contained in:
@@ -31,8 +31,7 @@ void setDesktopOverlayWidth( double width )
|
|||||||
|
|
||||||
void DesktopOverlay::update()
|
void DesktopOverlay::update()
|
||||||
{
|
{
|
||||||
setDesktopOverlayWidth(
|
setDesktopOverlayWidth( getCurrentWidth() );
|
||||||
settings::getSetting( settings::DoubleSetting::UTILITY_desktopWidth ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DesktopOverlay::isAvailable() const
|
bool DesktopOverlay::isAvailable() const
|
||||||
|
|||||||
Reference in New Issue
Block a user