Skip to content

Commit bf2750f

Browse files
committed
chore: support manually clearing the icon cache
1 parent b2da490 commit bf2750f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Coder-Desktop/Coder-Desktop/Views/Settings/GeneralTab.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import LaunchAtLogin
2+
import SDWebImage
23
import SwiftUI
34

45
struct GeneralTab: View {
@@ -18,6 +19,16 @@ struct GeneralTab: View {
1819
Text("Start Coder Connect on launch")
1920
}
2021
}
22+
Section {
23+
HStack {
24+
Text("Icon cache")
25+
Spacer()
26+
Button("Clear") {
27+
SDImageCache.shared.clearMemory()
28+
SDImageCache.shared.clearDisk()
29+
}
30+
}
31+
}
2132
}.formStyle(.grouped)
2233
}
2334
}

0 commit comments

Comments
 (0)