Repository: stable-diffusion-webui
Issue: [Bug]: hires. fix checkbox and state ui
Labels: not-an-issue

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

The problem occurs when using extensions such as webui-state and others that save interface settings. If you reload the page with the hiresfix checkbox on, the area with its settings disappears, and clicking on the checkbox does nothing. I have to turn off the checkbox and reload the page again, then click on it again to open its settings.

### Steps to reproduce the problem

1. Use extensions that save interface settings
2. Enable checkbox
3. Reload page


### What should have happened?

Turning the checkbox off and on again should open the hires. fix settings.

### Commit where the problem happens

5ab7f213

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
--opt-sdp-attention --api --autolaunch
```


### List of extensions

CFG-Schedule-for-Automatic1111-SD
PBRemTools
Stable-Diffusion-Webui-Civitai-Helper	
StylePile	
a1111-sd-webui-tagcomplete	
batch-face-swap
canvas-zoom	
clip-interrogator-ext	
depth-image-io-for-SDWebui	
depthmap2mask	
multidiffusion-upscaler-for-automatic1111
openOutpaint-webUI-extension
openpose-editor
posex	
prompt_translator	
sd-dynamic-thresholding	
sd-infinity-grid-generator-script	
sd-model-preview	
sd-webui-3d-open-pose-editor	
sd-webui-additional-networks	
sd-webui-bilingual-localization	
sd-webui-controlnet	
sd-webui-infinite-image-browsing	
sd-webui-llul	
sd-webui-model-converter	n
sd-webui-tunnels	
sd_feed
sd_web_ui_preset_utils
shift-attention
stable-diffusion-webui
stable-diffusion-webui-Prompt_Generator
stable-diffusion-webui-anti-burn
stable-diffusion-webui-cafe-aesthetic
stable-diffusion-webui-embedding-merge
stable-diffusion-webui-images-browser
stable-diffusion-webui-localization-ru_RU
stable-diffusion-webui-promptgen
stable-diffusion-webui-rembg
stable-diffusion-webui-state
stable-diffusion-webui-text2prompt
stable-diffusion-webui-two-shot
ultimate-upscale-for-automatic1111

### Console logs

```Shell
From https://github.com/AUTOMATIC1111/stable-diffusion-webui
 * branch              master     -> FETCH_HEAD
Already up to date.
venv "venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89
Installing requirements
Installing requirements for Batch Face Swap



Fetching updates for midas...
Checking out commit for midas with hash: 1645b7e...


Installing Installing onnxruntime-gpu...
Installing Installing opencv-python...
Installing Installing Pillow...
Installing Installing segmentation-refinement...
Installing Installing scikit-learn...






Installing requirements for Shift Attention




Launching Web UI with arguments: --opt-sdp-attention --api --autolaunch
No module 'xformers'. Proceeding without it.
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: I:\SD\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
Civitai Helper: No setting file, use default
[AddNet] Updating model hashes...
100%|██████████████████████████████████████████████████████████████| 209/209 [00:00<00:00, 41767.18it/s]
[AddNet] Updating model hashes...
100%|██████████████████████████████████████████████████████████████| 209/209 [00:00<00:00, 52104.70it/s]
dirname:  I:\SD\localizations
localizations:  {'localization': 'I:\\SD\\localizations\\localization.json', 'ru_RU': 'I:\\SD\\extensions\\stable-diffusion-webui-localization-ru_RU\\localizations\\ru_RU.json'}
ControlNet v1.1.133
ControlNet v1.1.133
[text2prompt] Following databases are available:
    all-mpnet-base-v2 : danbooru_strict
Loading weights [fc2511737a] from I:\SD\models\Stable-diffusion\chilloutmix_NiPrunedFp32Fix.safetensors
Creating model from config: I:\SD\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: I:\SD\models\VAE\vae-ft-mse-840000-ema-pruned.safetensors
Applying scaled dot product cross attention optimization.
No Image data blocks found.
No Image data blocks found.
Textual inversion embeddings loaded(10): ACGirl_001, AylaVam, bad-picture-chill-75v, easynegative, ng_deepnegative_v1_75t, pureerosface_v1, rcnz_style, Unspeakable-Horrors-Composition-4v, verybadimagenegative_v1.3, w3day_14
Model loaded in 6.0s (load weights from disk: 0.2s, create model: 0.5s, apply weights to model: 1.1s, apply half(): 0.8s, load VAE: 0.2s, move model to device: 0.8s, load textual inversion embeddings: 2.4s).
[text2prompt] Loading database with name "all-mpnet-base-v2 : danbooru_strict"...
[text2prompt] Database loaded
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 32.4s (import torch: 2.0s, import gradio: 1.1s, import ldm: 0.6s, other imports: 1.1s, list SD models: 0.4s, load scripts: 8.8s, load SD checkpoint: 6.2s, create ui: 11.4s, gradio launch: 0.4s, scripts app_started_callback: 0.1s).
```


### Additional information

_No response_