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()
|
public static void saveSettingsAsync()
|
||||||
{
|
{
|
||||||
Thread saveThread = new Thread(SettingsSerializer::saveSettings, "Save Settings");
|
BytecodeViewer.getTaskManager().doOnce(task -> saveSettings());
|
||||||
saveThread.start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static synchronized void saveSettings()
|
public static synchronized void saveSettings()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user