diff --git a/Planet/Views/My/MyPlanetTemplateSettingsView.swift b/Planet/Views/My/MyPlanetTemplateSettingsView.swift index bb670258..dd5adbad 100644 --- a/Planet/Views/My/MyPlanetTemplateSettingsView.swift +++ b/Planet/Views/My/MyPlanetTemplateSettingsView.swift @@ -185,11 +185,14 @@ struct MyPlanetTemplateSettingsView: View { .keyboardShortcut(.escape, modifiers: []) Button { - debugPrint("Template-level user settings: \(userSettings)") - Task { - planet.updateTemplateSettings(settings: userSettings) - try? planet.copyTemplateSettings() - try await planet.publish() + Task.detached(priority: .userInitiated) { + await planet.updateTemplateSettings(settings: userSettings) + try? await planet.copyTemplateSettings() + try await planet.save() + Task(priority: .background) { + try await planet.rebuild() + } + NotificationCenter.default.post(name: .loadArticle, object: nil) } dismiss() } label: { diff --git a/Planet/versioning.xcconfig b/Planet/versioning.xcconfig index 26a0032c..c77fbba4 100644 --- a/Planet/versioning.xcconfig +++ b/Planet/versioning.xcconfig @@ -1 +1 @@ -CURRENT_PROJECT_VERSION = 2232 +CURRENT_PROJECT_VERSION = 2233