Use Background Thread For Async Saving
This commit is contained in:
parent
17e128be28
commit
66b38222f8
|
@ -43,8 +43,7 @@ public class SettingsSerializer
|
|||
|
||||
public static void saveSettingsAsync()
|
||||
{
|
||||
Thread saveThread = new Thread(SettingsSerializer::saveSettings, "Save Settings");
|
||||
saveThread.start();
|
||||
BytecodeViewer.getTaskManager().doOnce(task -> saveSettings());
|
||||
}
|
||||
|
||||
public static synchronized void saveSettings()
|
||||
|
|
Loading…
Reference in New Issue
Block a user