Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8659,7 +8659,7 @@
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 57.4.4;
version = 57.4.5;
};
};
AA06B6B52672AF8100F541C5 /* XCRemoteSwiftPackageReference "Sparkle" */ = {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion DuckDuckGo/Preferences/Model/SyncPreferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ final class SyncPreferences: ObservableObject, SyncUI.ManagementViewModel {
})
}

private func refreshDevices() {
func refreshDevices() {
if syncService.account != nil {
Task { @MainActor in
do {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ public protocol ManagementViewModel: ObservableObject {
func presentRemoveDevice(_ device: SyncDevice)

func saveRecoveryPDF()
func refreshDevices()
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ struct SyncedDevicesView<ViewModel>: View where ViewModel: ManagementViewModel {

@EnvironmentObject var model: ViewModel

let timer = Timer.publish(every: 10, on: .main, in: .common).autoconnect()

var body: some View {
SyncedDevicesList(devices: model.devices,
presentDeviceDetails: model.presentDeviceDetails,
presentRemoveDevice: model.presentRemoveDevice)
.onReceive(timer) { _ in
model.refreshDevices()
}
}
}

Expand Down