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()
|
||||
{
|
||||
setDesktopOverlayWidth(
|
||||
settings::getSetting( settings::DoubleSetting::UTILITY_desktopWidth ) );
|
||||
setDesktopOverlayWidth( getCurrentWidth() );
|
||||
}
|
||||
|
||||
bool DesktopOverlay::isAvailable() const
|
||||
|
||||
Reference in New Issue
Block a user