Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: fix panic deleting file sync session via right click#202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 2 commits intomainfromethan/file-sync-delete-panic
Jul 23, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletionCoder-Desktop/.swiftformat
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
--selfrequired log,info,error,debug,critical,fault
--exclude **.pb.swift,**.grpc.swift
--condassignment always
--condassignment always
--disable unusedArguments
2 changes: 2 additions & 0 deletionsCoder-Desktop/.swiftlint.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,6 +3,8 @@ disabled_rules:
- trailing_comma
- blanket_disable_command # Used by Protobuf
- opening_brace # Handled by SwiftFormat
opt_in_rules:
- unused_parameter
type_name:
allowed_symbols: "_"
identifier_name:
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -165,11 +165,11 @@ struct FileSyncConfig<VPN: VPNService, FS: FileSyncDaemon>: View {
}

// TODO: Support selecting & deleting multiple sessions at once
func delete(session _: FileSyncSession) async {
func delete(session: FileSyncSession) async {
loading = true
defer { loading = false }
do throws(DaemonError) {
try await fileSync.deleteSessions(ids: [selection!])
try await fileSync.deleteSessions(ids: [session.id])
} catch {
actionError = error
}
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp