Skip to content

Commit

Permalink
Now the background image is also updated when the program is in forwa…
Browse files Browse the repository at this point in the history
…rd or backward mode.
  • Loading branch information
matvidal committed May 9, 2020
1 parent 5da66ae commit 0389a70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pypredict/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
__version__ = "3.2.1"
__version__ = "3.3.0"

from cartopy.crs import Geodetic, PlateCarree, RotatedPole
from cartopy.geodesic import Geodesic
Expand Down Expand Up @@ -541,10 +541,10 @@ def updateTime(self, date=None):
if (self.pause is False):
if (self.forward is True):
self.dmin += 2
elif (self.backward is True):
self.refreshBackgroundImg()
if (self.backward is True):
self.dmin -= 2
else:
pass
self.refreshBackgroundImg()
if (date is None):
self.date = datetime.utcnow() + timedelta(minutes=self.dmin)
else:
Expand Down

0 comments on commit 0389a70

Please sign in to comment.