| 26 | using namespace muse; |
| 27 | |
| 28 | void SessionsManager::init() |
| 29 | { |
| 30 | update(); |
| 31 | |
| 32 | globalContext()->currentProjectChanged().onNotify(this, [this]() { |
| 33 | update(); |
| 34 | |
| 35 | if (auto project = globalContext()->currentProject()) { |
| 36 | project->pathChanged().onNotify(this, [this]() { |
| 37 | update(); |
| 38 | }); |
| 39 | } |
| 40 | }); |
| 41 | } |
| 42 | |
| 43 | void SessionsManager::deinit() |
| 44 | { |
nothing calls this directly
no test coverage detected