From 972e024a43b338cc67edb5e21b4edec01a849910 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 15 Apr 2021 19:31:57 +0200 Subject: [PATCH] Add typing for get/setShowTravelMoves This one was missing. The rest already seems to have typing. --- plugins/SimulationView/SimulationView.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/SimulationView/SimulationView.py b/plugins/SimulationView/SimulationView.py index 9ae715beec..cf555590e6 100644 --- a/plugins/SimulationView/SimulationView.py +++ b/plugins/SimulationView/SimulationView.py @@ -330,14 +330,14 @@ class SimulationView(CuraView): # If more than 16 extruders are called for, this should be converted to a sampler1d. return Matrix(self._extruder_opacity) - def setShowTravelMoves(self, show): + def setShowTravelMoves(self, show: bool) -> None: if show == self._show_travel_moves: return self._show_travel_moves = show self.currentLayerNumChanged.emit() self.visibleStructuresChanged.emit() - def getShowTravelMoves(self): + def getShowTravelMoves(self) -> bool: return self._show_travel_moves def setShowHelpers(self, show: bool) -> None: