Skip to content

Commit

Permalink
[UsageConfig.py] Remove transition code
Browse files Browse the repository at this point in the history
This change was requested by Littlesat and Persian Prince as OpenPLi production releases are too far apart such that this code could hang around for a very long time.  It is not considered an issue for this setting to be reset to default and the old value to be left in the setting file.
  • Loading branch information
IanSav authored and littlesat committed Aug 30, 2020
1 parent c1c5b1d commit 638c7c1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/python/Components/UsageConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,6 @@ def alternativeNumberModeChange(configElement):
config.usage.menu_sort_mode = ConfigSelection(default = "default", choices = [("a_z", _("alphabetical")), ("default", _("Default")), ("user", _("user defined")), ("user_hidden", _("user defined hidden"))])
config.usage.menu_show_numbers = ConfigSelection(default = "no", choices = [("no", _("no")), ("menu&plugins", _("in menu and plugins")), ("menu", _("in menu only")), ("plugins", _("in plugins only"))])
config.usage.showScreenPath = ConfigSelection(default="small", choices=[("off", _("Disabled")), ("small", _("Small")), ("large", _("Large"))])
# The following code is to be short lived and exists to transition
# settings from the old config.usage.menu_path to the new
# config.usage.showScreenPath as this is the value to now shared
# by all images. Thise code will transition the setting and then
# remove the old entry from user's settings files.
config.usage.menu_path = ConfigSelection(default="small", choices=[("off", _("Disabled")), ("small", _("Small")), ("large", _("Large"))])
if config.usage.menu_path.value != config.usage.menu_path.default:
config.usage.showScreenPath.value = config.usage.menu_path.value
config.usage.menu_path.value = config.usage.menu_path.default
config.usage.save()
print("[UserConfig] DEBUG: The 'menu_path' setting of '%s' has been transferred to 'showScreenPath'." % config.usage.showScreenPath.value)
# End of temporary code.
config.usage.enable_tt_caching = ConfigYesNo(default = True)
config.usage.sort_settings = ConfigYesNo(default=False)
choicelist = []
Expand Down

0 comments on commit 638c7c1

Please sign in to comment.