We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 910ad8d commit 3ebf141Copy full SHA for 3ebf141
MacImageManager/MacImageManager/ContentView.swift
@@ -92,6 +92,10 @@ struct ContentView: View {
92
await browserModel.loadInitialDirectory()
93
}
94
95
+ .onChange(of: browserModel.currentDirectory) { _, _ in
96
+ // Clear the selected image when navigating to a different directory
97
+ selectedFile = nil
98
+ }
99
100
101
0 commit comments