scroll_timeout: fix the invalid reset in the configuration, force to 250ms, not 55ms.

This commit is contained in:
Mathieu Virbel 2013-04-29 16:34:05 +02:00
parent 662038ab56
commit cea02352fa
1 changed files with 5 additions and 3 deletions

View File

@ -193,7 +193,7 @@ from kivy.logger import Logger, logger_config_update
from kivy.utils import OrderedDict, platform
# Version number of current configuration format
KIVY_CONFIG_VERSION = 8
KIVY_CONFIG_VERSION = 9
#: Kivy configuration object
Config = None
@ -429,8 +429,6 @@ if not environ.get('KIVY_DOC_INCLUDE'):
elif version == 6:
# if the timeout is still the default value, change it
if Config.getint('widgets', 'scroll_timeout') == 250:
Config.set('widgets', 'scroll_timeout', '55')
Config.setdefault('widgets', 'scroll_stoptime', '300')
Config.setdefault('widgets', 'scroll_moves', '5')
@ -441,6 +439,10 @@ if not environ.get('KIVY_DOC_INCLUDE'):
Config.setdefault('postproc', 'triple_tap_distance', '20')
Config.setdefault('postproc', 'triple_tap_time', '375')
elif version == 8:
if Config.getint('widgets', 'scroll_timeout') == 55:
Config.set('widgets', 'scroll_timeout', '250')
#elif version == 1:
# # add here the command for upgrading from configuration 0 to 1
#