Skip to content

Commit da2fb7c

Browse files
committed
set window name to coder file sync
1 parent a1fd971 commit da2fb7c

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

Coder-Desktop/Coder-Desktop/Coder_DesktopApp.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct DesktopApp: App {
2323
.environmentObject(appDelegate.state)
2424
}
2525
.windowResizability(.contentSize)
26-
Window("File Sync", id: Windows.fileSync.rawValue) {
26+
Window("Coder File Sync", id: Windows.fileSync.rawValue) {
2727
FileSyncConfig<CoderVPNService, MutagenDaemon>()
2828
.environmentObject(appDelegate.state)
2929
.environmentObject(appDelegate.fileSyncDaemon)

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ struct FileSyncConfig<VPN: VPNService, FS: FileSyncDaemon>: View {
3030
.width(min: 60, ideal: 80)
3131
}
3232
.contextMenu(forSelectionType: FileSyncSession.ID.self, menu: { _ in },
33-
primaryAction: { selectedSessions in
34-
if let session = selectedSessions.first {
35-
editingSession = fileSync.sessionState.first(where: { $0.id == session })
36-
}
37-
})
33+
primaryAction: { selectedSessions in
34+
if let session = selectedSessions.first {
35+
editingSession = fileSync.sessionState.first(where: { $0.id == session })
36+
}
37+
})
3838
.frame(minWidth: 400, minHeight: 200)
3939
.padding(.bottom, 25)
4040
.overlay(alignment: .bottom) {
@@ -98,7 +98,7 @@ struct FileSyncConfig<VPN: VPNService, FS: FileSyncDaemon>: View {
9898
}
9999
}
100100
)) {} message: {
101-
Text(deleteError?.description ?? "An unknown error occurred. This should never happen.")
101+
Text(deleteError?.description ?? "An unknown error occurred.")
102102
}.task {
103103
while !Task.isCancelled {
104104
await fileSync.refreshSessions()

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ struct FileSyncSessionModal<VPN: VPNService, FS: FileSyncDaemon>: View {
5252
Divider()
5353
HStack {
5454
Spacer()
55-
if loading {
56-
ProgressView()
57-
}
5855
Button("Cancel", action: { dismiss() }).keyboardShortcut(.cancelAction)
5956
Button(existingSession == nil ? "Add" : "Save") { Task { await submit() }}
6057
.keyboardShortcut(.defaultAction)
@@ -73,7 +70,7 @@ struct FileSyncSessionModal<VPN: VPNService, FS: FileSyncDaemon>: View {
7370
get: { createError != nil },
7471
set: { if $0 { createError = nil } }
7572
)) {} message: {
76-
Text(createError?.description ?? "An unknown error occurred. This should never happen.")
73+
Text(createError?.description ?? "An unknown error occurred.")
7774
}
7875
}
7976

Coder-Desktop/Coder-Desktop/Views/LoginForm.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct LoginForm: View {
4949
}
5050
}
5151
)) {} message: {
52-
Text(loginError?.description ?? "An unknown error occurred. This should never happen.")
52+
Text(loginError?.description ?? "An unknown error occurred.")
5353
}.disabled(loading)
5454
.frame(width: 550)
5555
.fixedSize()

0 commit comments

Comments
 (0)