Skip to content

Commit dabdc40

Browse files
committed
Clean up code
1 parent a339131 commit dabdc40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/qml/SidebarToolWindow.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ Window
7979
{
8080
if (visible)
8181
{
82-
if(!Cura.SidebarGUIPlugin.checkRectangleOnScreen(Qt.rect(sidebarToolWindow.x, sidebarToolWindow.y, sidebarToolWindow.width, sidebarToolWindow.height)))
82+
var sidebar_rect = Qt.rect(sidebarToolWindow.x, sidebarToolWindow.y, sidebarToolWindow.width, sidebarToolWindow.height)
83+
if(!SidebarGUIPlugin.checkRectangleOnScreen(sidebar_rect))
8384
{
8485
sidebarToolWindow.x = base.x + base.width - sidebarToolWindow.width + UM.Theme.getSize("wide_margin").width
8586
sidebarToolWindow.y = base.y + UM.Theme.getSize("wide_margin").width

0 commit comments

Comments
 (0)