aboutsummaryrefslogtreecommitdiff
path: root/Hotline/iOS
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/iOS')
-rw-r--r--Hotline/iOS/FilesView.swift5
-rw-r--r--Hotline/iOS/TrackerView.swift6
2 files changed, 8 insertions, 3 deletions
diff --git a/Hotline/iOS/FilesView.swift b/Hotline/iOS/FilesView.swift
index 5815ca2..017a469 100644
--- a/Hotline/iOS/FilesView.swift
+++ b/Hotline/iOS/FilesView.swift
@@ -31,6 +31,11 @@ struct FileView: View {
return
}
+ // Some servers don't reply when asking for the contents of an empty folder.
+ if file.isFolder && file.fileSize == 0 {
+ return
+ }
+
Task {
await model.getFileList(path: file.path)
}
diff --git a/Hotline/iOS/TrackerView.swift b/Hotline/iOS/TrackerView.swift
index 2c0fac4..8359468 100644
--- a/Hotline/iOS/TrackerView.swift
+++ b/Hotline/iOS/TrackerView.swift
@@ -86,9 +86,9 @@ struct TrackerConnectView: View {
)
.cornerRadius(10.0)
Button {
- let s = Server(name: nil, description: nil, address: address, port: HotlinePorts.DefaultServerPort, users: 0)
+ let s = Server(name: nil, description: nil, address: address, port: HotlinePorts.DefaultServerPort, users: 0, login: login, password: password)
server = s
- self.model.login(server: s, login: login, password: password, username: "bolt", iconID: 128) { success in
+ self.model.login(server: s, username: "bolt", iconID: 128) { success in
if !success {
print("FAILED LOGIN??")
}
@@ -392,7 +392,7 @@ struct TrackerView: View {
self.model.disconnect()
let tempServer = Server(name: nil, description: nil, address: address, port: port, users: 0)
- self.model.login(server: tempServer, login: login, password: password, username: "bolt", iconID: 128) { success in
+ self.model.login(server: tempServer, username: "bolt", iconID: 128) { success in
if !success {
print("FAILED LOGIN??")
}