fix duplicated history

This commit is contained in:
neon443 committed 2025-08-18 15:46:57 +01:00
1 parent e8ad06b429
commit c0d45cbd2a
2 files changed
-3

No files matched your search

-1
View File
@@ -51,7 +51,6 @@ class HostsManager: ObservableObject, @unchecked Sendable {
}
func addToHistory(_ host: Host) {
history = [History(host: host, count: 1)] + history
history.append(History(host: host, count: 1))
formatHistory()
saveHistory()
-2
View File
@@ -13,8 +13,6 @@ struct RecentsView: View {
@State var historyCount: Int = 1
// @State var displayedHistory: [History] = []
var body: some View {
if !hostsManager.history.isEmpty {
Section("Recents") {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.