Skip to content

Commit

Permalink
fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjanse committed Dec 2, 2017
1 parent 46f296f commit 9846e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
});
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9846e1c

Please sign in to comment.