Listview.js, mainWindow.js: fix the lsiview refresh

The listview wasn't resetting the index value when the directory changed, so a new directory enumeration wasn't being triggered.