Closed ways2read closed 2 years ago
Agreed, this is clunky and repetitive. I'm not sure I can use exactly the approach you suggest since I think it may throw an exception before I am ready to catch it. But I have enough of a pointer to go on (pun intended!).
I think by moving it into a function, you can do the catch there and do the correction there (which is why I suggested added the default value to the call).
Add function to check that preference settings are present and valid, use defaults if not.
Resolves #17