From: KH Lau Date: Thu, 8 Mar 2018 08:39:56 +0000 (+0800) Subject: BrowserWindow.vala X-Git-Url: http://git.roojs.org/?p=app.webkitpdf;a=commitdiff_plain;h=d383888316927688a6899bd87b1287ec0e86e378 BrowserWindow.vala --- 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); } }