mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
- Add ConfigManager, Config and ConfigSerializer with JSON storage, validated names, sorted listings and atomic temp-file writes - Serialize module enabled state and typed values; ignore unknown or invalid entries so a malformed file cannot break a module - Track dirty state from value and module changes, then save on GUI close and JVM shutdown instead of only when the GUI is closed - Remember the last loaded config and refuse to delete the active one - Snapshot in-memory state before loading and roll back on failure; back up unreadable files so the client still has a writable config - Key modules by class name while still reading legacy display-name configs, so renaming a module keeps its stored settings - Initialise the config manager during OrangeX startup