From 4da0bffeee05c4589ae4d0addc7c695e31669990 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Sun, 8 Feb 2026 10:08:10 +0100 Subject: Add instance manager to plugin API (#2335) --- src/moapplication.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/moapplication.h') 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 m_modules; - std::unique_ptr m_instance; + std::shared_ptr m_instance; std::unique_ptr m_settings; std::unique_ptr m_nexus; std::unique_ptr m_plugins; std::unique_ptr m_core; void externalMessage(const QString& message); - std::unique_ptr getCurrentInstance(bool forceSelect); + std::shared_ptr getCurrentInstance(bool forceSelect); std::optional setupInstanceLoop(Instance& currentInstance, PluginContainer& pc); void purgeOldFiles(); }; -- cgit v1.3.1