| 34 | } |
| 35 | |
| 36 | void ProjectPropertiesModel::init() |
| 37 | { |
| 38 | m_project = globalContext()->currentProject(); |
| 39 | |
| 40 | globalContext()->currentProjectChanged().onNotify(this, [this]() { |
| 41 | m_project = globalContext()->currentProject(); |
| 42 | }); |
| 43 | |
| 44 | if (!m_project) { |
| 45 | return; |
| 46 | } |
| 47 | |
| 48 | // if (project) { |
| 49 | // m_projectMetaInfo = project->metaInfo(); |
| 50 | // } |
| 51 | |
| 52 | m_project->captureThumbnailRequested().onNotify(this, [this]() { |
| 53 | captureThumbnail(); |
| 54 | }); |
| 55 | |
| 56 | load(); |
| 57 | } |
| 58 | |
| 59 | void ProjectPropertiesModel::load() |
| 60 | { |
nothing calls this directly
no test coverage detected