spacr.qt.install_consent¶
Apply privacy and account choices collected by desktop installation.
Classes¶
One first-launch page whose three optional choices start off. |
Functions¶
|
Persist choices and return whether account setup was requested. |
|
Apply installer choices once, asking in-app if no page was shown. |
Module Contents¶
- class spacr.qt.install_consent.InstallerConsentDialog(parent=None)[source]¶
Bases:
PySide6.QtWidgets.QDialogOne first-launch page whose three optional choices start off.
- Parameters:
parent – parent widget.
Build the privacy and optional-account dialog.
Sized in scaled pixels rather than raw ones: a size set from Python does not grow with the stylesheet’s font size, and at the 200% scale the prose inside wrapped to more height than the window had.
- Parameters:
parent – parent widget, or
None.
- spacr.qt.install_consent.apply_choices(choices: Mapping[str, Any]) bool[source]¶
Persist choices and return whether account setup was requested.
- Parameters:
choices – the consent answers, read by the keys
share_diagnostics,report_issuesandsign_in_now; a missing or unrecognised value counts as no.
- spacr.qt.install_consent.maybe_show_installer_consent(parent) bool[source]¶
Apply installer choices once, asking in-app if no page was shown.
- Parameters:
parent – the widget that parents the in-app consent dialog and, if sign-in was chosen, the account setup dialog.
- Returns:
Truewhen an installer profile was handled this call.