Nevysha / Cozy-Nest

A collection of tweak to improve Auto1111 UI//UX
Other
382 stars 17 forks source link

[Issue]: Font Always reset to size 12 #136

Closed FartyPants closed 1 year ago

FartyPants commented 1 year ago

What happened?

It could be just me I go to settings, set font to 14, hit save. Next time (or on UI reload, the font is 12 again)

the font is written correctly in settings nevyui_settings.json "font_size": 14, But again, next time I run it - font is 12 Nice theme, but on my monitor, I can't see font 12 very well

Webui

Automatic1111's webui

What browsers are you seeing the problem on?

Firefox

Additional info

A bug happened!

Relevant browser log output

No response

Relevant log output from the webui

No response

Checklist

Nevysha commented 1 year ago

It happen when you use "Reload UI" or even on restart ?

jeditobe1 commented 1 year ago

I am having this with all settings - it is writing to the config file, but not using the settings it writes.

Refresh Page, Reload UI, and restarting A1111 all reset back to default settings (but don't write the file unless those settings are saved).

I had added some minor debugging via prints to the setting load scripts, and from what I can tell they are being loaded. Using the "accent generate button" as a test case - it had the right setting when setting up the checkbox in the gradio_main_tab() method in nevysha_cozy_nest.py, but still did not show on the UI. Even hardcoding it to use a "true" value there rather than reading from config did not cause the checkbox to be checked.

I have a different A1111 setup on a different machine, also on 2.1.6, and it loads/saves settings just fine (one is a windows install, the other is a linux install). At a guess it is a race condition (UI finishes spinning up before settings are loaded), but I am not familiar enough with the code to debug further.

Nevysha commented 1 year ago

I have a different A1111 setup on a different machine, also on 2.1.6, and it loads/saves settings just fine (one is a windows install, the other is a linux install). At a guess it is a race condition (UI finishes spinning up before settings are loaded), but I am not familiar enough with the code to debug further.

That's a good point I'll have in mind to fix this. Thanks for the troubleshot. Atm you'll have to wait a bit for the fix since I'm in the middle of a big update and will work on fix after it.

FartyPants commented 1 year ago

It happen when you use "Reload UI" or even on restart ?

Exactly just like jeditobe1 all prams save fine, but then never load and everything is reset to default. Tried firefox and chrome

Nevysha commented 1 year ago

Ok I found out what was the problem... (Been on it for like 5 hours...) . That's the new system that save the state of the UI which is not compatible with my way of saving Cozy Nest settings...

Nevysha commented 1 year ago

Can you try the new update I just pushed and tell me if it works ? (v2.1.7)

jeditobe1 commented 1 year ago

Looks much happier - booted with the settings previously saved, and editing the settings and saving then reloading UI also worked.