mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Add type hinting to _onContextMenuRequested
This commit is contained in:
parent
78603bed63
commit
8c4ec804e7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue