File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Coder-Desktop/Coder-Desktop/Views/FileSync Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ struct FilePicker: View {
2121
2222 var body : some View {
2323 VStack ( spacing: 0 ) {
24- if model. isLoading {
24+ if model. rootIsLoading {
2525 Spacer ( )
2626 ProgressView ( )
2727 . controlSize ( . large)
@@ -75,7 +75,7 @@ struct FilePicker: View {
7575@MainActor
7676class FilePickerModel : ObservableObject {
7777 @Published var rootFiles : [ FilePickerItemModel ] = [ ]
78- @Published var isLoading : Bool = false
78+ @Published var rootIsLoading : Bool = false
7979 @Published var error : ClientError ?
8080
8181 let client : AgentClient
@@ -86,9 +86,9 @@ class FilePickerModel: ObservableObject {
8686
8787 func loadRoot( ) {
8888 error = nil
89- isLoading = true
89+ rootIsLoading = true
9090 Task {
91- defer { isLoading = false }
91+ defer { rootIsLoading = false }
9292 do throws ( ClientError) {
9393 rootFiles = try await client
9494 . listAgentDirectory ( . init( path: [ ] , relativity: . root) )
You can’t perform that action at this time.
0 commit comments