Skip to content

Commit

Permalink
Remove loading state (covered by loading view)
Browse files Browse the repository at this point in the history
  • Loading branch information
graeme committed Jan 24, 2025
1 parent 950a431 commit 575932d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions DuckDuckGo/SyncSettingsViewController+SyncDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ extension SyncSettingsViewController: SyncManagementViewModelDelegate {
}

func switchAccounts(recoveryKey: SyncCode.RecoveryKey) async {
viewModel?.isSwitchingAccounts = true
defer {
viewModel?.isSwitchingAccounts = false
}
do {
try await syncService.disconnect()
} catch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ public class SyncSettingsViewModel: ObservableObject {
@Published public var invalidBookmarksTitles: [String] = []
@Published public var invalidCredentialsTitles: [String] = []

@Published public var isSwitchingAccounts = false

@Published var isBusy = false
@Published var recoveryCode = ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public struct SyncSettingsView: View {
}
} else {
List {
if model.isSyncEnabled || model.isSwitchingAccounts {
if model.isSyncEnabled {

syncUnavailableViewWhileLoggedIn()

Expand Down

0 comments on commit 575932d

Please sign in to comment.