The AppSettings file path, reproduced by hand — applyAtStartup() runs before QApplication, where QStandardPaths is unavailable and AppSettings must not be constructed. Mirrors main.cpp's UiScale bootstrap and AppSettings's own GenericConfigLocation layout.
| 158 | // constructed. Mirrors main.cpp's UiScale bootstrap and AppSettings's own |
| 159 | // GenericConfigLocation layout. |
| 160 | QString settingsFilePath() |
| 161 | { |
| 162 | #if defined(Q_OS_MAC) |
| 163 | return QDir::homePath() + QStringLiteral("/Library/Preferences/AetherSDR/AetherSDR.settings"); |
| 164 | #elif defined(Q_OS_WIN) |
| 165 | return QDir::fromNativeSeparators(qEnvironmentVariable("LOCALAPPDATA")) |
| 166 | + QStringLiteral("/AetherSDR/AetherSDR.settings"); |
| 167 | #else |
| 168 | return QDir::homePath() + QStringLiteral("/.config/AetherSDR/AetherSDR.settings"); |
| 169 | #endif |
| 170 | } |
| 171 | |
| 172 | // Startup read: parse the persisted "Graphics" → "gpu" id straight from the |
| 173 | // settings XML. Constructing AppSettings::instance() this early would run its |
no outgoing calls
no test coverage detected