From 9846e1ce98b9d6fc962ecce48dade8ef9359f9c0 Mon Sep 17 00:00:00 2001 From: Aaron Janse Date: Sat, 2 Dec 2017 00:00:07 -0800 Subject: [PATCH] fix #7 --- src/main.js | 5 ++++- src/package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index e0590fb..50b2c1a 100644 --- a/src/main.js +++ b/src/main.js @@ -243,6 +243,9 @@ const app = new Moon({ window.addEventListener('beforeunload', function(e) { const existing_snippets = app.get('snippets').filter(function(s) { return !s.deleted - }); + }).map(snippet => { + snippet.shown = true; + return snippet + }) ipc.sendSync('save_snippets', JSON.stringify(existing_snippets)) }); diff --git a/src/package.json b/src/package.json index 3ae54d7..a8ad43b 100644 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "code-snippets", "productName": "CodeSnippets", - "version": "0.2.2", + "version": "0.2.3", "description": "A lightweight app to keep track of code snippets", "license": "MIT", "repository": "aaronduino/snippet-manager",