mirror of
https://github.com/TimeCrafters/TimeCraftersConfigurationTool.git
synced 2025-12-15 21:12:34 +00:00
Automatically reload config if received config has the same name as the active config
This commit is contained in:
@@ -110,9 +110,11 @@ public class PacketHandler {
|
||||
|
||||
final String path = TAC.CONFIGS_PATH + File.separator + configName + ".json";
|
||||
|
||||
Log.i(TAG, "Got valid json: " + json);
|
||||
|
||||
Backend.instance().writeToFile(path, json);
|
||||
|
||||
if (Backend.instance().getConfig().getName().equals(configName)) {
|
||||
Backend.instance().loadConfig(configName);
|
||||
}
|
||||
}
|
||||
|
||||
private void handleDownloadConfig(Packet packet) {
|
||||
|
||||
Reference in New Issue
Block a user