![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
Warns when user data lives inside the program directory and backs it up first. More...
#include <at_risk_data_warning.h>
Classes | |
| struct | AtRiskBackupOutcome |
Static Public Member Functions | |
| static void | warnAboutDataPathsInProgramDir (QWidget *parent) |
| Backs up at-risk data paths and warns about them. | |
Static Private Member Functions | |
| static QStringList | collectInstalledAtRiskPaths (const QString &appDir) |
| static AtRiskBackupOutcome | backUpAtRiskPaths (const QStringList &sources, const QString &appDir) |
| static QString | buildInstalledAtRiskMessage (const QStringList &offenders, const QStringList &sources, const AtRiskBackupOutcome &outcome) |
| static void | showAtRiskDataWarning (QWidget *parent, const QString &title, const QString &message) |
Warns when user data lives inside the program directory and backs it up first.
The uninstallers shipped in Cockatrice 3.1.0/3.1.1 delete the whole install tree, so data paths configured inside the program directory get a safety backup outside the install directory before the warning is shown. Portable installs keep their data inside the program directory by design but never shipped an uninstaller, so they are skipped.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
Backs up at-risk data paths and warns about them.
| parent | Parent widget for the warning dialog |