Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldOfView committed Oct 3, 2023
1 parent a339131 commit dabdc40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/qml/SidebarToolWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ Window
{
if (visible)
{
if(!Cura.SidebarGUIPlugin.checkRectangleOnScreen(Qt.rect(sidebarToolWindow.x, sidebarToolWindow.y, sidebarToolWindow.width, sidebarToolWindow.height)))
var sidebar_rect = Qt.rect(sidebarToolWindow.x, sidebarToolWindow.y, sidebarToolWindow.width, sidebarToolWindow.height)
if(!SidebarGUIPlugin.checkRectangleOnScreen(sidebar_rect))
{
sidebarToolWindow.x = base.x + base.width - sidebarToolWindow.width + UM.Theme.getSize("wide_margin").width
sidebarToolWindow.y = base.y + UM.Theme.getSize("wide_margin").width
Expand Down

0 comments on commit dabdc40

Please sign in to comment.