Reformat code
This commit is contained in:
@@ -272,7 +272,6 @@ private struct LogContentInnerView: View {
|
||||
#endif
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
private var emptyContent: some View {
|
||||
Group {
|
||||
if dataModel.isConnected {
|
||||
@@ -427,7 +426,9 @@ private struct LogContentInnerView: View {
|
||||
}
|
||||
|
||||
private struct LogTextDocument: FileDocument {
|
||||
static var readableContentTypes: [UTType] { [.plainText] }
|
||||
static var readableContentTypes: [UTType] {
|
||||
[.plainText]
|
||||
}
|
||||
|
||||
private let url: URL
|
||||
|
||||
@@ -466,8 +467,7 @@ private struct LogContentInnerView: View {
|
||||
@Binding var alert: AlertState?
|
||||
|
||||
func makeNSView(context _: Context) -> NSView {
|
||||
let view = NSView()
|
||||
return view
|
||||
NSView()
|
||||
}
|
||||
|
||||
func updateNSView(_ nsView: NSView, context _: Context) {
|
||||
|
||||
@@ -25,8 +25,13 @@ public class LogDataModel: ObservableObject {
|
||||
|
||||
private static let maxVisibleLogs = 1000
|
||||
|
||||
public var isEmpty: Bool { commandClient.logList.isEmpty }
|
||||
public var isConnected: Bool { commandClient.isConnected }
|
||||
public var isEmpty: Bool {
|
||||
commandClient.logList.isEmpty
|
||||
}
|
||||
|
||||
public var isConnected: Bool {
|
||||
commandClient.isConnected
|
||||
}
|
||||
|
||||
private func updateVisibleLogs() {
|
||||
if filteredLogs.count <= Self.maxVisibleLogs {
|
||||
|
||||
Reference in New Issue
Block a user