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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 6 deletions
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

Lines changed: 1 addition & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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)
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