Skip to content

Commit

Permalink
Specify preferred font
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej Mihajlov committed Jun 3, 2022
1 parent 3029704 commit feb6239
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ios/MullvadVPN/PreferencesViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ enum CustomDNSPrecondition {
case .emptyDNSDomains:
if isEditing {
return NSAttributedString(
markdownString: NSLocalizedString(
string: NSLocalizedString(
"CUSTOM_DNS_NO_DNS_ENTRIES_EDITING_ON_FOOTNOTE",
tableName: "Preferences",
value: "To enable this setting, add at least one server.",
comment: "Foot note displayed if there are no DNS entries and table view is in editing mode."
),
font: preferredFont
attributes: [.font: preferredFont]
)
} else {
return NSAttributedString(
Expand All @@ -62,7 +62,8 @@ enum CustomDNSPrecondition {
tableName: "Preferences",
value: "Disable all content blockers (under Preferences) to activate this setting.",
comment: "Foot note displayed when custom DNS cannot be enabled, because ad/tracker/malware blockers features should be disabled first."
)
),
attributes: [.font: preferredFont]
)
}
}
Expand Down

0 comments on commit feb6239

Please sign in to comment.