Skip to content

Commit

Permalink
Fix showing reload file warning if the file has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Feb 9, 2017
1 parent e6a901b commit ecd564c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.

* Fix GitHub and 'Report Issue' menu items not working
* Fix move interpretation stuck at '3-3 point' sometimes
* Fix showing reload file warning if the file has been removed

## [Sabaki v0.20.0][v0.20.0] (2017-02-01)

Expand Down
2 changes: 1 addition & 1 deletion browser/index.js
Expand Up @@ -1189,7 +1189,7 @@ sabaki.askForSave = function() {
sabaki.askForReload = function() {
let hash = sabaki.generateFileHash()

if (hash != sabaki.getFileHash()) {
if (hash && hash != sabaki.getFileHash()) {
let answer = view.showMessageBox([
`This file has been changed outside of ${app.getName()}.`,
'Do you want to reload the file? Your changes will be lost.'
Expand Down

0 comments on commit ecd564c

Please sign in to comment.