From d2358c4e181eb14ec83589d24ef2953cf322b50c Mon Sep 17 00:00:00 2001 From: Joe R Date: Sun, 2 Jul 2023 09:54:35 -0400 Subject: [PATCH] Tracking the last PySol version in the config. --- pysollib/options.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pysollib/options.py b/pysollib/options.py index 84082c5e..d3ad2bdf 100644 --- a/pysollib/options.py +++ b/pysollib/options.py @@ -61,6 +61,7 @@ def calcCustomMouseButtonsBinding(binding_format): configspec = ''' [general] +last_version = list player = string confirm = boolean update_player_stats = boolean @@ -211,6 +212,7 @@ resampling = integer(0, 10) class Options: GENERAL_OPTIONS = [ + ('last_version', 'list'), ('player', 'str'), ('confirm', 'bool'), ('update_player_stats', 'bool'), @@ -302,6 +304,8 @@ class Options: self.version_tuple = pysollib.settings.VERSION_TUPLE # XXX self.saved = 0 # XXX + + self.last_version = (2, 20, 1) # options menu: self.player = _("Unknown") self.confirm = True @@ -589,6 +593,8 @@ class Options: def save(self, filename): config = self._config + self.last_version = self.version_tuple + # general for key, t in self.GENERAL_OPTIONS: val = getattr(self, key)