Skip to content

Commit cef2726

Browse files
authored
Refresh RecentsList when view appeared (#4)
<!--- IMPORTANT: If this PR addresses multiple unrelated issues, it will be closed until separated. --> ### Description Refresh RecentsList when view appeared. https://github.com/user-attachments/assets/3f4f17a7-714d-4d29-afbc-c86fbb09efe1 ### Related Issues <!--- REQUIRED: Tag all related issues (e.g. * #123) --> <!--- If this PR resolves the issue please specify (e.g. * closes #123) --> <!--- If this PR addresses multiple issues, these issues must be related to one other --> - closes #3 - closes CodeEditApp/CodeEdit#2140 ### Checklist <!--- Add things that are not yet implemented above --> - [x] I read and understood the [contributing guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md) as well as the [code of conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md) - [x] The issues this PR addresses are related to each other - [x] My changes generate no new warnings - [x] My code builds and runs on my machine - [x] My changes are all related to the related issue above - [x] I documented my code Co-authored-by: Phineas Guo <[email protected]>
1 parent cbd5c0d commit cef2726

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/WelcomeWindow/Views/WelcomeWindowView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ public struct WelcomeWindowView<RecentsView: View, SubtitleView: View>: View {
112112
.edgesIgnoringSafeArea(.top)
113113
.focused($focusedField, equals: FocusTarget.none)
114114
.onAppear {
115+
recentProjects = RecentsStore.recentProjectURLs()
116+
115117
// Set initial selection
116118
if !recentProjects.isEmpty {
117119
selection = [recentProjects[0]]

0 commit comments

Comments
 (0)