Adding command for opening url

CURA-11596
This commit is contained in:
saumya.jain 2024-02-06 12:17:38 +01:00
parent e554eb264e
commit 9c57627a88
2 changed files with 2 additions and 3 deletions

View file

@ -74,13 +74,10 @@ class SingleInstance:
def _onClientConnected(self) -> None:
Logger.log("i", "New connection received on our single-instance server")
connection = None #type: Optional[QLocalSocket]
Logger.log("i","getting connection")
if self._single_instance_server:
connection = self._single_instance_server.nextPendingConnection()
Logger.log("i", f"here: {connection}")
if connection is not None:
Logger.log("i","here2")
connection.readyRead.connect(lambda c = connection: self.__readCommands(c))
def __readCommands(self, connection: QLocalSocket) -> None: