diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-03 12:49:52 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-03 12:49:52 -0700 |
| commit | 02b452ccaf54cb24eb38fcb752126888994c0a1b (patch) | |
| tree | c30e71a1df363092a369fd7847c6223914662ce4 /Hotline/macOS/ChatView.swift | |
| parent | 73208d70d21db7e526e371fa863acd0327caad9e (diff) | |
First pass at private messages UI.
Diffstat (limited to 'Hotline/macOS/ChatView.swift')
| -rw-r--r-- | Hotline/macOS/ChatView.swift | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/Hotline/macOS/ChatView.swift b/Hotline/macOS/ChatView.swift index 35ff28e..951544f 100644 --- a/Hotline/macOS/ChatView.swift +++ b/Hotline/macOS/ChatView.swift @@ -24,7 +24,6 @@ struct ChatView: View { var body: some View { NavigationStack { ScrollViewReader { reader in - VStack(alignment: .leading, spacing: 0) { // MARK: Scroll View @@ -193,17 +192,17 @@ struct ChatView: View { } } .background(Color(nsColor: .textBackgroundColor)) - .toolbar { - ToolbarItem(placement: .primaryAction) { - Button { - if prepareChatDocument() { - showingExporter = true - } - } label: { - Image(systemName: "square.and.arrow.up") - }.help("Save Chat...") - } - } +// .toolbar { +// ToolbarItem(placement: .primaryAction) { +// Button { +// if prepareChatDocument() { +// showingExporter = true +// } +// } label: { +// Image(systemName: "square.and.arrow.up") +// }.help("Save Chat...") +// } +// } .fileExporter(isPresented: $showingExporter, document: self.chatDocument, contentType: .utf8PlainText, defaultFilename: "\(self.model.serverTitle) Chat.txt") { result in switch result { case .success(let url): |