1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46: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 {
data = CSON.readFileSync(path.join(remote.app.getPath('userData'), 'local.json'))
} catch (err) {
if (err.code === 'ENOENT') {
return
}
console.error(err)
}
let newState = {
@@ -212,9 +209,12 @@ class InitModal extends React.Component {
...
</button>
</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>
{this.state.legacyStorageExists &&
<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'>
<button styleName='body-control-createButton'