* @brief Clears the stored project file path and notifies listeners. */
| 208 | * @brief Clears the stored project file path and notifies listeners. |
| 209 | */ |
| 210 | void AppState::onProjectFileCleared() |
| 211 | { |
| 212 | if (m_projectFilePath.isEmpty()) |
| 213 | return; |
| 214 | |
| 215 | m_projectFilePath.clear(); |
| 216 | if (!m_ephemeralSession) |
| 217 | m_settings.remove("project_file_path"); |
| 218 | |
| 219 | Q_EMIT projectFileChanged(); |
| 220 | } |
| 221 | |
| 222 | //-------------------------------------------------------------------------------------------------- |
| 223 | // Private helpers |