mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
[Electron] Fix initial default install location validation (#1592)
This commit is contained in:
@@ -20,7 +20,7 @@ const mockElectronAPI: Plugin = {
|
||||
Promise.resolve({
|
||||
appData: 'C:/Users/username/AppData/Roaming',
|
||||
appPath: 'C:/Program Files/comfyui-electron/resources/app',
|
||||
defaultInstallPath: 'C:/Users/username/comfyui-electron'
|
||||
defaultInstallPath: 'bad'
|
||||
}),
|
||||
validateInstallPath: (path) => {
|
||||
if (path === 'bad') {
|
||||
@@ -42,7 +42,12 @@ const mockElectronAPI: Plugin = {
|
||||
}
|
||||
return { isValid: true }
|
||||
},
|
||||
showDirectoryPicker: () => Promise.resolve('C:/Users/username/comfyui-electron/1')
|
||||
showDirectoryPicker: () => Promise.resolve('C:/Users/username/comfyui-electron/1'),
|
||||
DownloadManager: {
|
||||
getAllDownloads: () => Promise.resolve([]),
|
||||
onDownloadProgress: () => {}
|
||||
},
|
||||
getElectronVersion: () => Promise.resolve('1.0.0')
|
||||
};`
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user