Make AttractorServer setting nil by default

This commit is contained in:
James Magahern
2022-08-22 15:43:06 -07:00
parent 3b42984361
commit 58433bc59d
3 changed files with 39 additions and 5 deletions

View File

@@ -169,7 +169,7 @@ class GeneralSettingsViewController: UIViewController
cell.contentConfiguration = ButtonContentConfiguration(menu: menu)
} else if identifier == Self.SyncServerItem {
cell.contentConfiguration = TextFieldContentConfiguration(
text: Settings.shared.syncServer,
text: Settings.shared.syncServer ?? "",
placeholderText: "https://sync.server.com",
textChanged: { newString in
Settings.shared.syncServer = newString