Skip to content

Commit 968fa7b

Browse files
committed
review
1 parent e1000fe commit 968fa7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Coder-Desktop/Coder-Desktop/Views/FileSync/FilePicker.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
7676
class 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))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy