Skip to content

Commit d1dcdcb

Browse files
committed
minor fixes
1 parent 0e43cbb commit d1dcdcb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/BuiltinExtensions/ComfyUIBackend/ComfyUISelfStartBackend.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ public override async Task Init()
9696
string modelPath = $"--extra-model-paths-config {pathRaw}";
9797
addedArgs = $" --preview-method auto {modelPath}";
9898
}
99-
if (!settings.StartScript.EndsWith("main.py"))
99+
if (!settings.StartScript.EndsWith("main.py") && !string.IsNullOrWhiteSpace(settings.StartScript))
100100
{
101101
Logs.Warning($"ComfyUI start script is '{settings.StartScript}', which looks wrong - did you forget to append 'main.py' on the end?");
102102
}
103-
if (settings.AutoUpdate)
103+
if (settings.AutoUpdate && !string.IsNullOrWhiteSpace(settings.StartScript))
104104
{
105105
try
106106
{

src/wwwroot/js/genpage/backends.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ function addBackendToHtml(backend, disable, spot = null) {
9898
for (let entry of cardBody.querySelectorAll('[data-name]')) {
9999
entry.disabled = disable;
100100
}
101+
if (!disable) {
102+
actualCardTitle.contentEditable = true;
103+
actualCardTitle.classList.add('backend-title-editable');
104+
}
101105
actualCardTitle.addEventListener('keydown', e => {
102106
if (e.key == 'Enter') {
103107
e.preventDefault();

0 commit comments

Comments
 (0)