mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:59:11 +08:00
Add own getInstance for curaApplicaiton
This makes the typing a bit smarter
This commit is contained in:
parent
9940bc8551
commit
e2a387b246
@ -1892,3 +1892,7 @@ class CuraApplication(QtApplication):
|
|||||||
op.push()
|
op.push()
|
||||||
from UM.Scene.Selection import Selection
|
from UM.Scene.Selection import Selection
|
||||||
Selection.clear()
|
Selection.clear()
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def getInstance(cls, *args, **kwargs) -> "CuraApplication":
|
||||||
|
return cast(CuraApplication, super().getInstance(**kwargs))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user