mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 05:04:15 +01:00
Make saving files and recalculating effective files threaded/once per frame.
This commit is contained in:
parent
b8210e094b
commit
67de0ccf45
14 changed files with 147 additions and 42 deletions
|
|
@ -64,7 +64,7 @@ public partial class Configuration : IPluginConfiguration
|
|||
}
|
||||
|
||||
// Save the current configuration.
|
||||
public void Save()
|
||||
private void SaveConfiguration()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -76,6 +76,9 @@ public partial class Configuration : IPluginConfiguration
|
|||
}
|
||||
}
|
||||
|
||||
public void Save()
|
||||
=> Penumbra.Framework.RegisterDelayed( nameof( SaveConfiguration ), SaveConfiguration );
|
||||
|
||||
// Add missing colors to the dictionary if necessary.
|
||||
private void AddColors( bool forceSave )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue