From d383888316927688a6899bd87b1287ec0e86e378 Mon Sep 17 00:00:00 2001 From: KH Lau Date: Thu, 8 Mar 2018 16:39:56 +0800 Subject: [PATCH] BrowserWindow.vala --- BrowserWindow.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BrowserWindow.vala b/BrowserWindow.vala index f00fa6f..28a1d5a 100644 --- a/BrowserWindow.vala +++ b/BrowserWindow.vala @@ -252,7 +252,7 @@ public class BrowserWindow : Object } print("calling print in %d seconds\n", (int)webkitpdf.opt_delay); - print("deleting tmp file %s\n",_this.cookie_file); + if (webkitpdf.opt_target_pdf != null) { GLib.Timeout.add_seconds(webkitpdf.opt_delay, () => { print("delay done URL: %s\n", this.el.uri); @@ -417,6 +417,10 @@ public class BrowserWindow : Object + } + + public void delete_cookiefile () { + print("deleting tmp file %s\n",_this.cookie_file); } } -- 2.39.2