From 3ba20036e377f72100a42520e3ee367464641808 Mon Sep 17 00:00:00 2001 From: Abdullah Alfaraj Date: Sat, 25 Mar 2023 09:06:09 +0300 Subject: [PATCH] place the downloaded image on top of the layer stack --- utility/io.js | 1 + 1 file changed, 1 insertion(+) diff --git a/utility/io.js b/utility/io.js index f53f2c3..e365b65 100644 --- a/utility/io.js +++ b/utility/io.js @@ -389,6 +389,7 @@ class IO { } static async urlToLayer(image_url, image_file_name = 'image_from_url.png') { + await psapi.unselectActiveLayersExe() const temp_entry = await fs.getTemporaryFolder() await downloadItExe(image_url, temp_entry, image_file_name) }