diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index b9b43b0e..2d960e54 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -222,7 +222,8 @@ def check_buttons_for_fit(self): self.toolbox.toolbar.remove(self.samples_button) self.toolbox.toolbar.remove(self.stop_separator) self.toolbox.toolbar.remove(self.stop_button) - self._view_toolbar.remove(self._coordinates_toolitem) + if self._coordinates_toolitem in self._view_toolbar: + self._view_toolbar.remove(self._coordinates_toolitem) if Gdk.Screen.width() / 14 < style.GRID_CELL_SIZE: self.samples_button2.show()