Show mobile files connection wait state

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo-H
2026-05-11 22:17:37 -04:00
co-authored by Orca
parent ea6983fcdd
commit d3791ebeac
+5 -1
View File
@@ -120,7 +120,11 @@ export default function MobileFileExplorerScreen() {
const [truncated, setTruncated] = useState(false)
const loadFiles = useCallback(async () => {
if (!client || connState !== 'connected') return
if (!client || connState !== 'connected') {
setLoading(false)
setError(connState === 'connected' ? 'Connecting to desktop...' : 'Waiting for desktop...')
return
}
setLoading(true)
setError(null)
try {