From c641a92d89264243d7bcc56b4971103b4c02264e Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Thu, 22 Jun 2017 12:32:06 +0200
Subject: [PATCH] Add a 'Remind me later' button to update notifications

---
 Resources/Scripts/update.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Resources/Scripts/update.js b/Resources/Scripts/update.js
index c1e0db18..5f52fd9f 100644
--- a/Resources/Scripts/update.js
+++ b/Resources/Scripts/update.js
@@ -112,6 +112,7 @@
   <p class='tdu-info'>Version ${version} is now available.</p>
   <div class='tdu-buttons'>
     <button class='tdu-btn-download'>Update now</button>
+    <button class='tdu-btn-later'>Remind me later</button>
     <button class='tdu-btn-ignore'>Ignore this update</button>
   </div>
 </div>
@@ -134,6 +135,11 @@
         $TDU.openBrowser(updateDownloadFallback);
       }
     });
+    
+    buttonDiv.children(".tdu-btn-later").click(function(){
+      clearTimeout(updateCheckTimeoutID);
+      ele.slideUp(hide);
+    });
 
     buttonDiv.children(".tdu-btn-unsupported").click(function(){
       $TDU.openBrowser("https://github.com/chylex/TweetDuck/wiki/Supported-Systems");