-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Cele toto spravanie s crashovanim appky cez exit(0) sa mi strasne nepaci, ze treba kvoli zmene servera restartovat appku. Hlavne to je trackovane potom do Crashlytics, kedze to zachyti ako crash. Na to by sme mali vymysliet nejaky handler, co refreshne tu network session, aj kvoli setupu proxy do buducna 😄
kazdopadne drobne navrhovane upravy:
func saveMemorySettingsFooter() -> some View {
VStack(spacing: 10) {
ButtonFilled(text: "Save memory settings") {
saveMemorySettings()
}
#warning("TODO: treba crashovat appku aj kvoli memory settingom?")
Text("The app will be terminated to properly change memory sanitizer settings.")
.multilineTextAlignment(.center)
.foregroundColor(AppDebugColors.textSecondary)
.font(.caption)
.frame(maxWidth: .infinity)
}
.padding(16)
.background(Glass().edgesIgnoringSafeArea(.bottom))
}
func saveMemorySettings() {
memorySettingsManager.enabled = enabled
memorySettingsManager.style = style
memorySettingsManager.visibility = visibility
exit(0)
}
Originally posted by @plajdo in #36 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels