mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
Put hack back in.
This commit is contained in:
1 parent
816a087b6b
commit
d81cf44c84
1 file changed
+13
-8
+13
-8
@@ -195,15 +195,20 @@ export class Engine {
|
||||
console.log("Engine heard AI Stylize request: ", data);
|
||||
//console.log(data);
|
||||
// Hack to ensure this doesn't break because UI BUG
|
||||
try {
|
||||
await this.renderEngine.startProcessing(data);
|
||||
} catch (error) {
|
||||
// throw error to retry
|
||||
uiAccess.dialogueError.show({
|
||||
title: "Generation Error",
|
||||
message: error.toString(),
|
||||
});
|
||||
|
||||
if (this.ranOnce === true) {
|
||||
try {
|
||||
await this.renderEngine.startProcessing(data);
|
||||
} catch (error) {
|
||||
// throw error to retry
|
||||
uiAccess.dialogueError.show({
|
||||
title: "Generation Error",
|
||||
message: error.toString(),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
this.ranOnce = true;
|
||||
});
|
||||
|
||||
// TODO: You may listen to all the image toolbar events here
|
||||
|
||||
Reference in new issue
Block a user