Skip to content

Commit

Permalink
Check if there is a diskNavigationRoot before refreshing files
Browse files Browse the repository at this point in the history
  • Loading branch information
murilopolese committed Apr 22, 2024
1 parent 5143078 commit ec733ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/arduino/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ window.addEventListener('load', () => {
app.mount('#app')

app.emitter.on('DOMContentLoaded', () => {
app.emitter.emit('refresh-files')
if (app.state.diskNavigationRoot) {
app.emitter.emit('refresh-files')
}
})

})

0 comments on commit ec733ca

Please sign in to comment.