Add JSON exposure and dynamic toolbox content reload

Implemented `SetJsonItems` to handle JSON serialization and expose toolbox items to JavaScript. Enhanced the webview with new JS-exposed functions and added frontend support for dynamic toolbox reloading.
This commit is contained in:
2024-12-10 21:42:58 +01:00
parent 639cd6a536
commit 6cd4b0a608
4 changed files with 80 additions and 24 deletions

View File

@@ -45,6 +45,8 @@ private:
std::thread m_threadMonitor;
std::atomic<bool> m_runningMonitor = true;
std::string jsonString;
#ifdef _WIN32
std::filesystem::path userPath = std::getenv("USERPROFILE"); // Windows
#else
@@ -68,4 +70,6 @@ private:
void monitor_focus();
void open_file_system();
void SetJsonItems();
};