SirVeggie / sd-browser

A standalone stable diffusion image browser
4 stars 2 forks source link

Add dropdown for flyout url selection #7

Open bWm-nubby opened 2 days ago

bWm-nubby commented 2 days ago

A dropdown menu for selecting the active URL for the flyout menu could better facilitate users of multiple WebUIs or other sites within the flyout pane. The contents of this dropdown would be configured server side, perhaps in the .env file so that the list would persist across devices. Something like this:

PORT=4200
PASS=1234
IMG_FOLDER=[path\to\img\directory]
FLYOUT_LIST=[firsturl],[secondurl],[thirdurl]

The option to still input a different URL client side would still be useful for on the fly changes and individual clients that might be used for a unique use case.

SirVeggie commented 1 day ago

Now it do be doing that. Instead of env file, it simply remembers (globally) the last 6 addresses used. The amount is arbitrary and can be increased if needed.