Skip to content

Commit

Permalink
Fix dialog if GTP logs dir doesnt exist at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Mar 14, 2020
1 parent 43532a5 commit 4e7790d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class App extends Component {
}

componentDidMount() {
gtplogger.updatePath()

window.addEventListener('contextmenu', evt => {
evt.preventDefault()
})
Expand Down
3 changes: 1 addition & 2 deletions src/modules/sabaki.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ class Sabaki extends EventEmitter {
this.history = []
this.recordHistory()

gtplogger.updatePath()

// Bind state to settings

setting.events.on(this.window.id, 'change', ({key, value}) => {
Expand All @@ -128,6 +126,7 @@ class Sabaki extends EventEmitter {
i18n.loadLang(value)
}
})

this.updateSettingState()
}

Expand Down

0 comments on commit 4e7790d

Please sign in to comment.