Skip to content

Commit

Permalink
fix: Remove TODO comment
Browse files Browse the repository at this point in the history
Remove the TODO and the hackish code for updating the position.
Didn't work, plus it is better to have a safe default.
  • Loading branch information
ItachiSan committed Jun 3, 2024
1 parent 739c9e3 commit 4fb491e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions yin_yang/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fb491e

Please sign in to comment.