We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4577eb commit 043fe76Copy full SHA for 043fe76
Flow.Launcher/PublicAPIInstance.cs
@@ -37,6 +37,8 @@ public class PublicAPIInstance : IPublicAPI
37
private readonly Internationalization _translater;
38
private readonly MainViewModel _mainVM;
39
40
+ private readonly object _saveSettingsLock = new();
41
+
42
#region Constructor
43
44
public PublicAPIInstance(Settings settings, Internationalization translater, MainViewModel mainVM)
@@ -92,9 +94,12 @@ public async void RestartApp()
92
94
93
95
public void SaveAppAllSettings()
96
{
- PluginManager.Save();
- _mainVM.Save();
97
- _settings.Save();
+ lock (_saveSettingsLock)
98
+ {
99
+ _settings.Save();
100
+ PluginManager.Save();
101
+ _mainVM.Save();
102
+ }
103
_ = ImageLoader.SaveAsync();
104
}
105
0 commit comments