* @brief Check if a profile path is new (doesn't have .gpg-id yet). * @param path The profile path to check. * @return true if the path needs initialization. */
| 16 | * @return true if the path needs initialization. |
| 17 | */ |
| 18 | auto ProfileInit::needsInit(const QString &path) -> bool { |
| 19 | QDir dir(path); |
| 20 | if (!dir.exists()) { |
| 21 | return false; |
| 22 | } |
| 23 | return !dir.exists(".gpg-id"); |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected