Add deprecated warnings

This commit is contained in:
世界
2024-11-04 23:04:58 +08:00
parent c7d9b49de7
commit 59aebddaa4
4 changed files with 52 additions and 14 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ public class CommandClient: ObservableObject {
}
DispatchQueue.main.async { [self] in
if commandClient.logList.count >= commandClient.logMaxLines {
commandClient.logList.removeSubrange(0 ..< Int(messageList.len()))
commandClient.logList.removeFirst()
}
while messageList.hasNext() {
commandClient.logList.append(messageList.next())