Explorar el Código

fix state when cancelled

Gildas hace 2 años
padre
commit
3aa8714217
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/content/content.js

+ 1 - 1
src/core/content/content.js

@@ -199,8 +199,8 @@ async function processPage(options) {
 		if (!cancelled) {
 			options.embeddedImage = await openFile({ accept: "image/*" });
 			openFileInfobar.hide();
-			ui.onInsertEmbeddedImage(options);
 		}
+		ui.onInsertEmbeddedImage(options);
 	}
 	if (!options.saveRawPage && !processor.cancelled) {
 		let lazyLoadPromise;