Fix remove and update from window context settings

### What does it do ?

Fixes removing context settings and updating context settings from a window.

### Why is it needed ?

Because it doesn't work :)

### Related issues

Resolves #12086