We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 056a517 commit 6dde62eCopy full SHA for 6dde62e
Sources/CodexSkillManager/Skills/Sidebar/SkillListView.swift
@@ -54,15 +54,20 @@ struct SkillListView: View {
54
}
55
.listStyle(.sidebar)
56
.toolbar {
57
- if source == .clawdhub {
58
- ToolbarItem(placement: .primaryAction) {
59
- Button {
60
- Task { await remoteStore.loadLatest() }
61
- } label: {
62
- Label("Reload", systemImage: "arrow.clockwise")
+ ToolbarItem(placement: .primaryAction) {
+ Button {
+ Task {
+ switch source {
+ case .local:
+ await store.loadSkills()
63
+ case .clawdhub:
64
+ await remoteStore.loadLatest()
65
+ }
66
- .labelStyle(.iconOnly)
67
+ } label: {
68
+ Label("Reload", systemImage: "arrow.clockwise")
69
70
+ .labelStyle(.iconOnly)
71
72
73
0 commit comments