Fix button enabled state depending on printer connection

I think I made a mistake when I removed one of the global variables here.

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-10 14:43:31 +01:00
parent b3bd488c07
commit 2f8fc05181
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -318,7 +318,7 @@ Column
height: UM.Theme.getSize("setting_control").height
enabled:
{
if (!connectedPrinter != null)
if (connectedPrinter == null)
{
return false; //Can't preheat if not connected.
}