|
|
@@ -39,18 +39,16 @@ EditorCore::EditorCore() :
|
|
|
macro_manager_(std::make_unique<MacroManager>(*this)),
|
|
|
rectangle_manager_(std::make_unique<RectangleManager>(*this))
|
|
|
{
|
|
|
- // LuaApi needs core_ pointer to be valid, so set it after constructor body starts
|
|
|
- lua_api_->set_core(*this);
|
|
|
-
|
|
|
- // Initialize themes
|
|
|
- theme_manager_.create_default_themes();
|
|
|
- theme_manager_.set_active_theme("everforest-dark");
|
|
|
-
|
|
|
- // LuaApi will load init.lua, which relies on `editor` global being set via set_core().
|
|
|
- lua_api_->load_init_file();
|
|
|
-}
|
|
|
-
|
|
|
-EditorCore::~EditorCore() = default;
|
|
|
+ // LuaApi needs core_ pointer to be valid, so set it after constructor body starts
|
|
|
+ lua_api_->set_core(*this);
|
|
|
+
|
|
|
+ // Initialize themes
|
|
|
+ theme_manager_.create_default_themes();
|
|
|
+ theme_manager_.set_active_theme("everforest-dark");
|
|
|
+
|
|
|
+ // Restore init.lua loading
|
|
|
+ lua_api_->load_init_file(); // This loads init.lua, which relies on `editor` global being set via set_core().
|
|
|
+ }EditorCore::~EditorCore() = default;
|
|
|
|
|
|
// === Cursor Proxies ===
|
|
|
|