- Notifications
You must be signed in to change notification settings - Fork3
fix: improve file sync agent picker#128
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
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -103,15 +103,6 @@ struct FileSyncConfig<VPN: VPNService, FS: FileSyncDaemon>: View { | ||
// Opens the log file in Console | ||
NSWorkspace.shared.open(fileSync.logFile) | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. This is already checked in | ||
}.onAppear { | ||
isVisible = true | ||
}.onDisappear { | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -116,6 +116,12 @@ struct VPNMenu<VPN: VPNService, FS: FileSyncDaemon>: View { | ||
.environmentObject(vpn) | ||
.environmentObject(state) | ||
.onReceive(inspection.notice) { inspection.visit(self, $0) } // ViewInspector | ||
.task { | ||
ethanndickson marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
while !Task.isCancelled { | ||
await fileSync.refreshSessions() | ||
try? await Task.sleep(for: .seconds(2)) | ||
} | ||
} | ||
} | ||
private var vpnDisabled: Bool { | ||
Uh oh!
There was an error while loading.Please reload this page.