I'm looking over a lot of the mods that people have made to DC++. On quite a few of the settings added to the settings manager, the programmers want to impose reasonable limits. Like the minimum slots = 1 in the standard source.
The Settings pages should obviously check for good values as the user inputs them. But then a lot of values are checked again in set(...). Should there be a way to set and verify the allowable range on the ints managed by the SettingsManager, instead of this freeform addition to set()?
Well, this is really a half-thought, but I'd like to hear responses.
Limiting the range of Settings in SettingsManager
Moderator: Moderators
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
-
- The Creator Himself
- Posts: 296
- Joined: 2003-01-02 17:15