fixes #4896 Time Machine Settings window issues

Fixed the issue and committed the code for review, please check it.