removed unused code
Massimo Melina committed
Nov 1, 2025 at 16:19 UTC
5d7f106faf25412c03f8ca3e00077ae2f4ce5360
2 files changed
+2
-4
frontend/src/BrowseFiles.ts
-2
@@ -15,8 +15,6 @@ import { DirEntry, state, useSnapState } from './state'
15
import { alertDialog } from './dialog'
16
import useFetchList, { usePath } from './useFetchList'
17
import { useAuthorized } from './login'
18
-import { acceptDropFiles } from './upload'
19
-import { enqueueUpload, getFilePath } from './uploadQueue'
18
import _ from 'lodash'
19
import { makeOnClickOpen, openFileMenu } from './fileMenu'
20
import { ClipBar } from './clip'
frontend/src/fileMenu.ts
+2
-2
@@ -227,9 +227,9 @@ export function makeOnClickOpen(entry: DirEntry) {
227
ev.preventDefault()
228
if (entry.cantOpen === DirEntry.FORBIDDEN)
229
return alertDialog(t`Forbidden`, 'warning')
230
- if (!await loginDialog(true, false)) return
230
+ if (!await loginDialog(true, false)) return // if we get here, login is required, and we can go on only if it succeeds
231
if (entry.isFolder && !entry.web) // internal navigation
232
- return setTimeout(() => getHFS().navigate(entry.uri)) // couldn't find the reason why navigating sync is reverted back
232
+ return setTimeout(() => getHFS().navigate(entry.uri)) // couldn't find the reason why navigating sync is reverted, so setTimeout
233
location.href = entry.uri
234
}
235
}