From 4fb491eae4f43cb579f941d24c643d1c7971637b Mon Sep 17 00:00:00 2001 From: Giovanni Santini Date: Mon, 3 Jun 2024 21:14:50 +0200 Subject: [PATCH] fix: Remove TODO comment Remove the TODO and the hackish code for updating the position. Didn't work, plus it is better to have a safe default. --- yin_yang/position.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/yin_yang/position.py b/yin_yang/position.py index d628eb8..328a497 100644 --- a/yin_yang/position.py +++ b/yin_yang/position.py @@ -35,13 +35,6 @@ def handlePosition(self, position: QGeoPositionInfo): """Track the position provided by the service.""" self._lastPosition = position - # TODO: Here trigger a refresh. - # I tried the following but it seem to not work: - ## Trigger a refresh. Ugly but does the job - # from yin_yang.config import config - # _ = config.location - # del config - def lastKnownPosition(self): """Return the last known position, if valid.""" return self._lastPosition