mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 13:47:51 -06:00
Fix minor type mistakes
Contributes to issue CURA-5330.
This commit is contained in:
parent
75e5a185d9
commit
fe43219e34
1 changed files with 3 additions and 3 deletions
|
@ -7,12 +7,12 @@ from typing import List, Optional
|
||||||
|
|
||||||
from PyQt5.QtNetwork import QLocalServer, QLocalSocket
|
from PyQt5.QtNetwork import QLocalServer, QLocalSocket
|
||||||
|
|
||||||
from UM.Application import Application #For typing.
|
from UM.Qt.QtApplication import QtApplication #For typing.
|
||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
|
|
||||||
|
|
||||||
class SingleInstance:
|
class SingleInstance:
|
||||||
def __init__(self, application: Application, files_to_open: Optional[List[str]]) -> None:
|
def __init__(self, application: QtApplication, files_to_open: Optional[List[str]]) -> None:
|
||||||
self._application = application
|
self._application = application
|
||||||
self._files_to_open = files_to_open
|
self._files_to_open = files_to_open
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ class SingleInstance:
|
||||||
|
|
||||||
def _onClientConnected(self) -> None:
|
def _onClientConnected(self) -> None:
|
||||||
Logger.log("i", "New connection recevied on our single-instance server")
|
Logger.log("i", "New connection recevied on our single-instance server")
|
||||||
connection = None
|
connection = None #type: Optional[QLocalSocket]
|
||||||
if self._single_instance_server:
|
if self._single_instance_server:
|
||||||
connection = self._single_instance_server.nextPendingConnection()
|
connection = self._single_instance_server.nextPendingConnection()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue