mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 21:20:12 +00:00
Add tutorial workflow function for new desktop users (#2315)
Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
@@ -1061,7 +1061,18 @@ export class ComfyApp {
|
||||
|
||||
// We failed to restore a workflow so load the default
|
||||
if (!restored) {
|
||||
await this.loadGraphData()
|
||||
const settingStore = useSettingStore()
|
||||
|
||||
// If tutorial is not completed, load the tutorial workflow
|
||||
if (!settingStore.get('Comfy.TutorialCompleted')) {
|
||||
await settingStore.set('Comfy.TutorialCompleted', true)
|
||||
// Load model folders to ensure the missing models' corresponding folders
|
||||
// can be correctly identified.
|
||||
await useModelStore().loadModelFolders()
|
||||
await useWorkflowService().loadTutorialWorkflow()
|
||||
} else {
|
||||
await this.loadGraphData()
|
||||
}
|
||||
}
|
||||
|
||||
this.#addDrawNodeHandler()
|
||||
|
||||
Reference in New Issue
Block a user