diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2026-02-08 10:08:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-08 10:08:10 +0100 |
| commit | 4da0bffeee05c4589ae4d0addc7c695e31669990 (patch) | |
| tree | 9d6c793899935f3687d5df64f4daafcec4ebd36c /src/moapplication.h | |
| parent | a394f02e97ad0bf328fa735cbdbfbe026c03655d (diff) | |
Add instance manager to plugin API (#2335)
Diffstat (limited to 'src/moapplication.h')
| -rw-r--r-- | src/moapplication.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/moapplication.h b/src/moapplication.h index 498242f3..f3805545 100644 --- a/src/moapplication.h +++ b/src/moapplication.h @@ -81,14 +81,14 @@ private: QString m_defaultStyle; std::unique_ptr<env::ModuleNotification> m_modules; - std::unique_ptr<Instance> m_instance; + std::shared_ptr<Instance> m_instance; std::unique_ptr<Settings> m_settings; std::unique_ptr<NexusInterface> m_nexus; std::unique_ptr<PluginContainer> m_plugins; std::unique_ptr<OrganizerCore> m_core; void externalMessage(const QString& message); - std::unique_ptr<Instance> getCurrentInstance(bool forceSelect); + std::shared_ptr<Instance> getCurrentInstance(bool forceSelect); std::optional<int> setupInstanceLoop(Instance& currentInstance, PluginContainer& pc); void purgeOldFiles(); }; |
