Stop settings window to close when accepting

When the settings are applied, the settings window doesn't close
anymore.