mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: remove redundant canvas save/restore and add error logging
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user