place the downloaded image on top of the layer stack

pull/197/head
Abdullah Alfaraj 2023-03-25 09:06:09 +03:00
parent 455ac21912
commit 3ba20036e3
1 changed files with 1 additions and 0 deletions

View File

@ -389,6 +389,7 @@ class IO {
} }
static async urlToLayer(image_url, image_file_name = 'image_from_url.png') { static async urlToLayer(image_url, image_file_name = 'image_from_url.png') {
await psapi.unselectActiveLayersExe()
const temp_entry = await fs.getTemporaryFolder() const temp_entry = await fs.getTemporaryFolder()
await downloadItExe(image_url, temp_entry, image_file_name) await downloadItExe(image_url, temp_entry, image_file_name)
} }