1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

fix forever loading if user is new

This commit is contained in:
Dick Choi
2016-07-24 03:11:07 +09:00
parent 173640d0b4
commit ed70cb8e3d
2 changed files with 7 additions and 7 deletions

View File

@@ -56,9 +56,6 @@ class InitModal extends React.Component {
try { try {
data = CSON.readFileSync(path.join(remote.app.getPath('userData'), 'local.json')) data = CSON.readFileSync(path.join(remote.app.getPath('userData'), 'local.json'))
} catch (err) { } catch (err) {
if (err.code === 'ENOENT') {
return
}
console.error(err) console.error(err)
} }
let newState = { let newState = {
@@ -212,9 +209,12 @@ class InitModal extends React.Component {
... ...
</button> </button>
</div> </div>
<div styleName='body-migration'>
<label><input type='checkbox' checked={this.state.migrationRequested} onChange={(e) => this.handleMigrationRequestedChange(e)}/> Migrate old data from the legacy app v0.5</label> {this.state.legacyStorageExists &&
</div> <div styleName='body-migration'>
<label><input type='checkbox' checked={this.state.migrationRequested} onChange={(e) => this.handleMigrationRequestedChange(e)}/> Migrate old data from the legacy app v0.5</label>
</div>
}
<div styleName='body-control'> <div styleName='body-control'>
<button styleName='body-control-createButton' <button styleName='body-control-createButton'

View File

@@ -1,6 +1,6 @@
{ {
"name": "boost", "name": "boost",
"version": "0.6.0", "version": "0.6.1",
"description": "Boostnote", "description": "Boostnote",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {