Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2022-04-22 10:36:46 +0300
committerJaime van Kessel <nallath@gmail.com>2022-04-22 10:36:46 +0300
commitc1ed7b97f9e5083c2571d60d2e1a031ee48fd9ca (patch)
treeb77e31ff7d74d9875f793b4f6543b1ab4ef02d07
parente1ec9d68f803927b6ac5efc86368473c8f67ad09 (diff)
Use right enums for single instance
CURA-9183
-rw-r--r--cura/SingleInstance.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/SingleInstance.py b/cura/SingleInstance.py
index af98869ad7..61ab1204fe 100644
--- a/cura/SingleInstance.py
+++ b/cura/SingleInstance.py
@@ -29,7 +29,7 @@ class SingleInstance:
single_instance_socket.connectToServer("ultimaker-cura")
single_instance_socket.waitForConnected(msecs = 3000) # wait for 3 seconds
- if single_instance_socket.state() != QLocalSocket.ConnectedState:
+ if single_instance_socket.state() != QLocalSocket.LocalSocketState.ConnectedState:
return False
# We only send the files that need to be opened.
@@ -37,7 +37,7 @@ class SingleInstance:
Logger.log("i", "No file need to be opened, do nothing.")
return True
- if single_instance_socket.state() == QLocalSocket.ConnectedState:
+ if single_instance_socket.state() == QLocalSocket.LocalSocketState.ConnectedState:
Logger.log("i", "Connection has been made to the single-instance Cura socket.")
# Protocol is one line of JSON terminated with a carriage return.