Skip to content

Commit

Permalink
Fix thamara#255: avoiding preferences save when still null
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 committed Jun 5, 2020
1 parent 42da2ad commit 4348ea8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Fix: [#249] Fix loading preferences
- Fix: [#250] Silently ignoring waiver on non-working day or non-working day range
- Fix: [#252] Prevent multiple preferences and workday waiver windows to be opened
- Fix: [#255] Avoiding issue when closing preferences window without changing anything
- Enhancement: [#228] Improved performance of TTL - Now moving through the calendar is much faster
- Enhancement: [#152] Adding a "Copy" option in the "About message", making it easier to copy information when opening an issue
- Enhancement: [#247] Day View - new minimalist view that shows the calendar day by day
Expand Down
6 changes: 4 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ function createWindow() {
//prefWindow.webContents.openDevTools()
prefWindow.on('close', function() {
prefWindow = null;
savePreferences(savedPreferences);
win.webContents.send('PREFERENCE_SAVED', savedPreferences);
if (savedPreferences !== null) {
savePreferences(savedPreferences);
win.webContents.send('PREFERENCE_SAVED', savedPreferences);
}
});
},
},
Expand Down

0 comments on commit 4348ea8

Please sign in to comment.