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:
Vasily
2019-12-10 08:28:41 +01:00
committed by username223
parent ba30e0054f
commit 5b23247667
+1 -2
View File
@@ -31,8 +31,7 @@ void setDesktopOverlayWidth( double width )
void DesktopOverlay::update()
{
setDesktopOverlayWidth(
settings::getSetting( settings::DoubleSetting::UTILITY_desktopWidth ) );
setDesktopOverlayWidth( getCurrentWidth() );
}
bool DesktopOverlay::isAvailable() const