Skip to content

Commit

Permalink
(bug) Handle cancel action when opening files
Browse files Browse the repository at this point in the history
Before it would just clear your library.
  • Loading branch information
bcomnes committed May 3, 2023
1 parent 396f4cc commit b86b150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/player/elements/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Header extends Component {

handlePaths ({ filePaths }) {
this.dialogOpen = false
if (filePaths) {
if (Array.isArray(filePaths) && filePaths.length > 0) {
this.emit('config:set', { filePaths })
this.emit('library:update-library', filePaths)
}
Expand Down

0 comments on commit b86b150

Please sign in to comment.