mirror of
https://github.com/Team4388/RidgeScout.git
synced 2026-06-09 00:37:59 -06:00
Add background, fix a crash
This commit is contained in:
@@ -10,7 +10,16 @@ public class DataManager {
|
||||
public static frcEvent event;
|
||||
public static void reload_event(){
|
||||
evcode = getevcode();
|
||||
|
||||
if(evcode.equals("unset")) return;
|
||||
|
||||
event = frcEvent.decode(fileEditor.readFile(evcode + ".eventdata"));
|
||||
|
||||
if(event == null) {
|
||||
AlertManager.error("Failed to load event!");
|
||||
settingsManager.setEVCode("unset");
|
||||
evcode = "unset";
|
||||
}
|
||||
}
|
||||
|
||||
public static String getevcode() {
|
||||
|
||||
Reference in New Issue
Block a user