Skip to content

Commit 9c3cf3b

Browse files
committed
Do not default local path to /
1 parent f4dd8ff commit 9c3cf3b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ui/arduino/store.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -545,18 +545,17 @@ function store(state, emitter) {
545545
})
546546

547547
// NAVIGATION
548-
emitter.on('navigate-to', async (device, fullPath) => {
549-
log('navigate-to', device, fullPath)
548+
emitter.on('navigate-to', async (device, localPath) => {
549+
log('navigate-to', device, localPath)
550550
state.blocking = true
551551
emitter.emit('render')
552-
fullPath = fullPath || '/'
552+
// localPath = localPath || '/'
553553
if (device === 'serial') {
554-
state.serialNavigation += '/' + fullPath
554+
state.serialNavigation += '/' + localPath
555555
state.serialNavigation = serial.cleanPath(state.serialNavigation)
556556
}
557557
if (device === 'disk') {
558-
state.diskNavigation += '/' + fullPath
559-
state.diskNavigation = await disk.cleanPath(state.diskNavigation)
558+
state.diskNavigation = await disk.cleanPath(state.diskNavigation + '/' + localPath)
560559
}
561560
if (state.selectedDevice === device) {
562561
state.selectedFile = null

0 commit comments

Comments
 (0)