pull/178/head
Nevysha 2023-06-24 20:31:08 +02:00 committed by GitHub
parent 515bbf6731
commit fb298c5903
7 changed files with 57 additions and 38 deletions

View File

@ -2,6 +2,9 @@
- Automatic1111's webui 1.3.2 release.
## Minor changes & fixes in 2.3.1
- [x] May work in SD.Next. Cozy Prompt is disabled in SD.Next.
## New features in 2.3.0
- [x] DROPPING SUPPORT FOR SD.NEXT. Cozy Nest is now only compatible with Automatic1111's webui. Maintaining compatibility with SD.Next was too much work for me. I'm sorry for the SD.Next users.
- [x] Civitai Helper and its 4 button on thumbnails should work properly.

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,8 @@ import './ExtraNetworks.css'
import {LoaderContext} from "./LoaderContext.jsx";
import {CozyLogger} from "../main/CozyLogger.js";
import {Loading} from "../image-browser/App.jsx";
import DOM_IDS from "../main/dom_ids.js";
import {WEBUI_SDNEXT} from "../main/Constants.js";
let extraNetworksParent = null;
let hasCivitaiHelper = false;
@ -32,12 +34,18 @@ export function ExtraNetworks({prefix}) {
const tabs = document.querySelector(`#${prefix}_extra_tabs`)
extraNetworksParent = tabs.parentNode
const triggerButton = document.querySelector(`button#${prefix}_extra_networks`)
const triggerButton = document.querySelector(`button#${DOM_IDS.get('extra_networks_btn')(prefix)}`)
triggerButton.style.display = 'none'
const extraN = document.querySelector(`div#${prefix}_extra_networks`)
extraN.style.display = 'none';
if (COZY_NEST_CONFIG.webui === WEBUI_SDNEXT) {
//txt2img_extra_close
const close = document.querySelector(`button#${prefix}_extra_close`)
close.style.display = 'none'
}
//for txt2img we need an extra tweak because of the way the DOM / element are built in gradio
let civitaiHelperRefresh = document.querySelector(`#civitai-helper-refresh-${prefix}`)

View File

@ -40,9 +40,9 @@ export default async function cozyNestLoader() {
startCozyNestImageBrowser();
if (COZY_NEST_CONFIG.webui === WEBUI_SDNEXT) {
alert("I'm sorry, but the SDNext webui is not supported by cozy-nest atm. You should uninstall cozy-nest.");
}
// if (COZY_NEST_CONFIG.webui === WEBUI_SDNEXT) {
// alert("I'm sorry, but the SDNext webui is not supported by cozy-nest atm. You should uninstall cozy-nest.");
// }
});
}

View File

@ -393,8 +393,10 @@ export function App() {
</TabPanel>
<TabPanel css={nevyshaScrollbar}>
{config.webui === WEBUI_SDNEXT && <span style={{color:'#fd4141', fontWeight:'bold'}}>Cozy Prompt is not available in SD.Next</span>}
<Checkbox
isChecked={config.enable_cozy_prompt}
isDisabled={config.webui === WEBUI_SDNEXT}
onChange={(e) => setConfig({...config, enable_cozy_prompt: e.target.checked})}
>Enable Cozy Prompt (Reload UI required)</Checkbox>
<Column>
@ -433,8 +435,9 @@ export function App() {
>Enable extra network tweaks</Checkbox>
<Checkbox
isChecked={config.enable_cozy_prompt}
isDisabled={config.webui === WEBUI_SDNEXT}
onChange={(e) => setConfig({...config, enable_cozy_prompt: e.target.checked})}
>Enable Cozy Prompt</Checkbox>
>Enable Cozy Prompt{config.webui === WEBUI_SDNEXT ? ' (not available in SD.Next.)' : ''}</Checkbox>
</Column>
</TabPanel>
</TabPanels>

View File

@ -295,10 +295,15 @@ def on_ui_tabs():
if version['app'] == 'sd.next':
config['webui'] = 'sd.next'
config['fetch_output_folder_from_a1111_settings'] = False
config['enable_cozy_prompt'] = False
else:
config['webui'] = 'auto1111'
save_settings(config)
if config['webui'] == 'sd.next':
config['enable_cozy_prompt'] = False
config['fetch_output_folder_from_a1111_settings'] = False
# check if cnib_output_folder is empty and/or need to be fetched from a1111 settings
cnib_output_folder = config.get('cnib_output_folder')
is_empty = cnib_output_folder == []

View File

@ -1,3 +1,3 @@
{
"version": "2.3.0"
"version": "2.3.1"
}