|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: How to save a user's (plugin-related) preferences? » » » » Post: Re: How to save a user's (plugin-related) preferences? |
Print at Feb 6, 2026, 3:44:13 AM |
| Posted by Puybaret at Jul 20, 2024, 8:34:35 AM |
|
Re: How to save a user's (plugin-related) preferences? Some properties are not so important to save like window size after resizing it. Some other properties should be saved and in that case, you should call setModified method. Prefer to use properties with a unique prefix to avoid any clash with future ones or properties managed by other plug-ins. Note that these home properties are saved for a project, not for all projects like you seemed to want by speaking about "preferences". As you noticed, there are no setProperty / getProperty in UserPreferences class at the moment, but can save additional data at the same place as where preferences.xm file is saved if needed. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Feb 6, 2026, 3:44:13 AM |