restore screen curtain state on settings cancel (#19652)
Fixes #19642
### Summary of the issue:
The state of screen curtain was not restored when cancelling from the
settings dialog
### Description of user facing changes:
The state of screen curtain should be restored when cancelling from the
settings dialog
### Description of developer facing changes:
none
### Description of development approach:
Store the state of screen curtain when the settings load.
Restore that state on cancellation.
### Testing strategy:
Test if the state of screen curtain is restored when cancelling from the
settings dialog.
Tested a combination of applying, saving and escaping without applying.
Ensured config and state of screen curtain was retained correct;y