Skip to content

Commit

Permalink
Use Full Rebuild after template settings changed
Browse files Browse the repository at this point in the history
  • Loading branch information
livid committed Sep 3, 2024
1 parent b05f761 commit 4ea1f31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions Planet/Views/My/MyPlanetTemplateSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion Planet/versioning.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 2232
CURRENT_PROJECT_VERSION = 2233

0 comments on commit 4ea1f31

Please sign in to comment.