File tree 1 file changed +4
-4
lines changed
Coder-Desktop/Coder-Desktop/Views/FileSync
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ struct FilePicker: View {
21
21
22
22
var body : some View {
23
23
VStack ( spacing: 0 ) {
24
- if model. isLoading {
24
+ if model. rootIsLoading {
25
25
Spacer ( )
26
26
ProgressView ( )
27
27
. controlSize ( . large)
@@ -75,7 +75,7 @@ struct FilePicker: View {
75
75
@MainActor
76
76
class FilePickerModel : ObservableObject {
77
77
@Published var rootFiles : [ FilePickerItemModel ] = [ ]
78
- @Published var isLoading : Bool = false
78
+ @Published var rootIsLoading : Bool = false
79
79
@Published var error : ClientError ?
80
80
81
81
let client : AgentClient
@@ -86,9 +86,9 @@ class FilePickerModel: ObservableObject {
86
86
87
87
func loadRoot( ) {
88
88
error = nil
89
- isLoading = true
89
+ rootIsLoading = true
90
90
Task {
91
- defer { isLoading = false }
91
+ defer { rootIsLoading = false }
92
92
do throws ( ClientError) {
93
93
rootFiles = try await client
94
94
. listAgentDirectory ( . init( path: [ ] , relativity: . root) )
You can’t perform that action at this time.
0 commit comments