Skip to content

Commit

Permalink
Rename cellTitle as syncCellTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Jan 4, 2024
1 parent 6ed868e commit 3079e4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo/SettingsSyncView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct SettingsSyncView: View {
var body: some View {
if viewModel.shouldShowSyncCell {
Section {
SettingsCellView(label: viewModel.cellTitle,
SettingsCellView(label: viewModel.syncCellTitle,
action: { viewModel.presentLegacyView(.sync) },
asLink: true,
disclosureIndicator: true)
Expand Down
2 changes: 1 addition & 1 deletion DuckDuckGo/SettingsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ final class SettingsViewModel: ObservableObject {
var shouldShowSpeechRecognitionCell: Bool { AppDependencyProvider.shared.voiceSearchHelper.isSpeechRecognizerAvailable }
var shouldShowNoMicrophonePermissionAlert: Bool = false
var shouldShowDebugCell: Bool { return featureFlagger.isFeatureOn(.debugMenu) || isDebugBuild }
var cellTitle: String {
var syncCellTitle: String {
let syncService = legacyViewProvider.syncService
let isDataSyncingDisabled = !syncService.featureFlags.contains(.dataSyncing) && syncService.authState == .active
if SyncBookmarksAdapter.isSyncBookmarksPaused || SyncCredentialsAdapter.isSyncCredentialsPaused || isDataSyncingDisabled {
Expand Down

0 comments on commit 3079e4a

Please sign in to comment.