move the generated image to selection area

pull/92/head
Abdullah Alfaraj 2023-02-08 15:49:44 +03:00
parent 0cb51762c5
commit 0cfdb80850
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
const general = require('../general')
const psapi = require('../../psapi')
//horde generation process:
//*) get the settings
//*) get send request
@ -263,6 +263,10 @@ async function processHordeResult() {
writeable_entry,
image_file_name
) //
await psapi.layerToSelection(
g_generation_session.selectionInfo
) //TODO: create a safe layerToSelection function
} catch (e) {
console.warn(e)
}