Compare commits

...

1 Commits

Author SHA1 Message Date
Johnpaul
610cd55f07 fix: remove redundant canvas save/restore and add error logging 2026-03-03 03:17:04 +01:00
2 changed files with 2 additions and 4 deletions

View File

@@ -114,8 +114,8 @@ const onToggleDockedJobHistory = async (close: () => void) => {
sidebarTabStore.activeSidebarTabId = 'job-history'
await settingStore.set('Comfy.Queue.QPOV2', true)
} catch {
return
} catch (error) {
console.warn('[JobHistory] Failed to toggle docked job history:', error)
}
}
</script>

View File

@@ -60,14 +60,12 @@ function renderUploadSpinner(
const radius = 16
const angle = ((Date.now() % 1000) / 1000) * TWO_PI
ctx.save()
ctx.strokeStyle = LiteGraph.NODE_TEXT_COLOR
ctx.lineWidth = 3
ctx.lineCap = 'round'
ctx.beginPath()
ctx.arc(centerX, centerY, radius, angle, angle + SPINNER_ARC_LENGTH)
ctx.stroke()
ctx.restore()
// Schedule next frame to keep spinner animating continuously.
// Only runs while node.isUploading is true (checked by caller).