mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
focus content editor after create new Note
This commit is contained in:
@@ -12,14 +12,11 @@ class NoteList extends React.Component {
|
||||
}
|
||||
|
||||
componentDidMount () {
|
||||
// this.refreshTimer = setInterval(() => this.forceUpdate(), 60 * 1000)
|
||||
// ipc.on('list-focus', this.focusHandler)
|
||||
// this.focus()
|
||||
this.refreshTimer = setInterval(() => this.forceUpdate(), 60 * 1000)
|
||||
}
|
||||
|
||||
componentWillUnmount () {
|
||||
// clearInterval(this.refreshTimer)
|
||||
// ipc.removeListener('list-focus', this.focusHandler)
|
||||
clearInterval(this.refreshTimer)
|
||||
}
|
||||
|
||||
componentDidUpdate () {
|
||||
|
||||
Reference in New Issue
Block a user