Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ukladanie settingov cez exit(0) #37

Open
andrej-jasso opened this issue Jul 12, 2024 · 0 comments
Open

Ukladanie settingov cez exit(0) #37

andrej-jasso opened this issue Jul 12, 2024 · 0 comments

Comments

@andrej-jasso
Copy link
Contributor

          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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant