mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:35:57 +08:00
Add type hinting to _onContextMenuRequested
This commit is contained in:
parent
78603bed63
commit
8c4ec804e7
@ -1334,7 +1334,7 @@ class CuraApplication(QtApplication):
|
||||
Logger.log("e", "Could not check file %s: %s", file_url, e)
|
||||
return False
|
||||
|
||||
def _onContextMenuRequested(self, x, y):
|
||||
def _onContextMenuRequested(self, x: float, y: float) -> None:
|
||||
# Ensure we select the object if we request a context menu over an object without having a selection.
|
||||
if not Selection.hasSelection():
|
||||
node = self.getController().getScene().findObject(self.getRenderer().getRenderPass("selection").getIdAtPosition(x, y))
|
||||
|
Loading…
x
Reference in New Issue
Block a user