mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 10:16:26 +00:00
Rename addNotes to addNotesFromFiles
This commit is contained in:
@@ -349,7 +349,7 @@ class NoteList extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dialog.showOpenDialog(remote.getCurrentWindow(), options, (filepaths) => {
|
dialog.showOpenDialog(remote.getCurrentWindow(), options, (filepaths) => {
|
||||||
this.addNotes(filepaths)
|
this.addNotesFromFiles(filepaths)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -361,7 +361,7 @@ class NoteList extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add notes in the current folder
|
// Add notes in the current folder
|
||||||
addNotes (filepaths) {
|
addNotesFromFiles (filepaths) {
|
||||||
const { dispatch, location } = this.props
|
const { dispatch, location } = this.props
|
||||||
|
|
||||||
const targetIndex = _.findIndex(this.notes, (note) => {
|
const targetIndex = _.findIndex(this.notes, (note) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user