Skip to content

Commit

Permalink
[ConfigText]
Browse files Browse the repository at this point in the history
* add missing fixed_size parameter for settings with unknown length because the default is "True"
  • Loading branch information
jbleyel committed Jan 15, 2025
1 parent 0c6975b commit 1138814
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/python/Components/InputDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def setupConfigEntries(self, device):
configItem = getattr(config.inputDevices, device)
configItem.enabled = ConfigYesNo(default=BoxInfo.getItem("RemoteEnable", False))
configItem.enabled.addNotifier(self.inputDevicesEnabledChanged)
configItem.name = ConfigText(default="")
configItem.name = ConfigText(default="", fixed_size=False)
configItem.name.addNotifier(self.inputDevicesNameChanged)
configItem.repeat = ConfigSlider(default=BoxInfo.getItem("RemoteRepeat", 100), increment=10, limits=(0, 500))
configItem.repeat.addNotifier(self.inputDevicesRepeatChanged)
Expand Down
2 changes: 1 addition & 1 deletion lib/python/Components/UsageConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def InitUsageConfig():
(2, _("IPv4 only")),
(3, _("IPv6 only"))
])
config.usage.dnsSuffix = ConfigText(default="")
config.usage.dnsSuffix = ConfigText(default="", fixed_size=False)
config.usage.dnsRotate = ConfigYesNo(default=False)
config.usage.subnetwork = ConfigYesNo(default=True)
config.usage.subnetwork_cable = ConfigYesNo(default=True)
Expand Down
4 changes: 2 additions & 2 deletions lib/python/Screens/DeviceManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,10 +991,10 @@ def __init__(self, session, index=-1, storageDevices=None):
choiceList.append((devMount, devMount))
choiceList.append(("", "Custom"))
self.mountPoints.append(NoSave(ConfigSelection(default=defaultMountpoint, choices=choiceList)))
self.customMountPoints.append(NoSave(ConfigText()))
self.customMountPoints.append(NoSave(ConfigText(fixed_size=False)))
fileSystemChoices = [(x, x) for x in fileSystems]
self.fileSystems.append(NoSave(ConfigSelection(default=fileSystems[0], choices=fileSystemChoices)))
self.options.append(NoSave(ConfigText("defaults")))
self.options.append(NoSave(ConfigText(default="defaults", fixed_size=False)))

Setup.__init__(self, session=session, setup="DeviceManagerMountPoints")
self.setTitle(_("Select the mount points"))
Expand Down
2 changes: 1 addition & 1 deletion lib/python/Screens/NetworkSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def createSetup(self): # NOSONAR silence S2638
Setup.createSetup(self)
dnsList = self["config"].getList()
self.dnsStart = len(dnsList)
items = [NoSave(ConfigIP(default=x)) for x in self.dnsServers if isinstance(x, list)] + [NoSave(ConfigText(default=x)) for x in self.dnsServers if isinstance(x, str)]
items = [NoSave(ConfigIP(default=x)) for x in self.dnsServers if isinstance(x, list)] + [NoSave(ConfigText(default=x, fixed_size=False)) for x in self.dnsServers if isinstance(x, str)]
for item, entry in enumerate(items, start=1):
dnsList.append(getConfigListEntry(_("Name server %d") % item, entry, _("Enter DNS (Dynamic Name Server) %d's IP address.") % item))
self.dnsLength = item
Expand Down

0 comments on commit 1138814

Please sign in to comment.