fix: defer saving config

This commit is contained in:
Anna committed 2022-02-04 23:31:36 -05:00
1 parent 0699f5129f
commit 2018d73519
2 files changed
+10 -5

No files matched your search

+3 -1
View File
@@ -129,7 +129,9 @@ internal sealed class Settings : IUiComponent {
config.UpdateFrom(this.Mutable);
this.Ui.Plugin.SaveConfig();
// save after 60 frames have passed, which should hopefully not
// commit any changes that cause a crash
this.Ui.Plugin.DeferredSaveFrames = 60;
this.Ui.Plugin.Store.FilterAllTabs(false);