aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/macOS')
-rw-r--r--Hotline/macOS/ChatView.swift2
-rw-r--r--Hotline/macOS/FilesView.swift20
-rw-r--r--Hotline/macOS/ServerView.swift3
3 files changed, 18 insertions, 7 deletions
diff --git a/Hotline/macOS/ChatView.swift b/Hotline/macOS/ChatView.swift
index f16ac8b..2b6d10b 100644
--- a/Hotline/macOS/ChatView.swift
+++ b/Hotline/macOS/ChatView.swift
@@ -51,7 +51,7 @@ struct ChatView: View {
.padding(16)
}
.scrollBounceBehavior(.basedOnSize)
- .frame(maxHeight: 325)
+ .frame(maxHeight: 375)
// Divider()
//
diff --git a/Hotline/macOS/FilesView.swift b/Hotline/macOS/FilesView.swift
index ee5a310..771836d 100644
--- a/Hotline/macOS/FilesView.swift
+++ b/Hotline/macOS/FilesView.swift
@@ -163,12 +163,14 @@ struct FilesView: View {
}
}
.toolbar {
+
+
ToolbarItem(placement: .primaryAction) {
Button {
} label: {
- Label("Download File", systemImage: "square.and.arrow.down")
+ Label("Delete File", systemImage: "trash")
}
- .help("Download")
+ .help("Delete")
}
ToolbarItem(placement: .primaryAction) {
@@ -176,15 +178,23 @@ struct FilesView: View {
} label: {
Label("Preview File", systemImage: "eye")
}
- .help("Preview")
+ .help("Preview File")
}
ToolbarItem(placement: .primaryAction) {
Button {
} label: {
- Label("Delete File", systemImage: "trash")
+ Label("Get File Info", systemImage: "info.circle")
}
- .help("Delete")
+ .help("Get File Info")
+ }
+
+ ToolbarItem(placement: .primaryAction) {
+ Button {
+ } label: {
+ Label("Download File", systemImage: "square.and.arrow.down")
+ }
+ .help("Download")
}
}
}
diff --git a/Hotline/macOS/ServerView.swift b/Hotline/macOS/ServerView.swift
index da5716f..7476b3c 100644
--- a/Hotline/macOS/ServerView.swift
+++ b/Hotline/macOS/ServerView.swift
@@ -252,13 +252,14 @@ struct ServerView: View {
}
.navigationTitle("")
.onAppear {
+ print(" YAYY")
self.model.login(server: self.server, login: "", password: "", username: "bolt", iconID: 128) { success in
if !success {
print("FAILED LOGIN??")
}
else {
- self.model.sendUserInfo(username: "bolt", iconID: 128)
print("GETTING USER LIST????!")
+ self.model.sendUserInfo(username: "bolt", iconID: 128)
self.model.getUserList()
}
}