ios: optmize chat console performance (#2912)
This commit is contained in:
parent
4f9683f678
commit
1cc14346b0
@ -582,7 +582,7 @@ final class ChatModel: ObservableObject {
|
|||||||
|
|
||||||
func addTerminalItem(_ item: TerminalItem) {
|
func addTerminalItem(_ item: TerminalItem) {
|
||||||
if terminalItems.count >= 500 {
|
if terminalItems.count >= 500 {
|
||||||
terminalItems.remove(at: 0)
|
terminalItems.removeFirst()
|
||||||
}
|
}
|
||||||
terminalItems.append(item)
|
terminalItems.append(item)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user