Skip to content

Commit 7faf0ef

Browse files
committed
Merge branch '0.6.0'
2 parents 2544b5b + ed70cb8 commit 7faf0ef

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

browser/main/modals/InitModal.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ class InitModal extends React.Component {
5656
try {
5757
data = CSON.readFileSync(path.join(remote.app.getPath('userData'), 'local.json'))
5858
} catch (err) {
59-
if (err.code === 'ENOENT') {
60-
return
61-
}
6259
console.error(err)
6360
}
6461
let newState = {
@@ -212,9 +209,12 @@ class InitModal extends React.Component {
212209
...
213210
</button>
214211
</div>
215-
<div styleName='body-migration'>
216-
<label><input type='checkbox' checked={this.state.migrationRequested} onChange={(e) => this.handleMigrationRequestedChange(e)}/> Migrate old data from the legacy app v0.5</label>
217-
</div>
212+
213+
{this.state.legacyStorageExists &&
214+
<div styleName='body-migration'>
215+
<label><input type='checkbox' checked={this.state.migrationRequested} onChange={(e) => this.handleMigrationRequestedChange(e)}/> Migrate old data from the legacy app v0.5</label>
216+
</div>
217+
}
218218

219219
<div styleName='body-control'>
220220
<button styleName='body-control-createButton'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "boost",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"description": "Boostnote",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)