Splits the GUI into more components to increase maintainability
This commit is contained in:
@ -230,7 +230,7 @@ public class Controller {
|
||||
*/
|
||||
private void executeGUILoadingTasks() {
|
||||
this.serverLauncherGUI.updateProfiles();
|
||||
this.serverLauncherGUI.update();
|
||||
this.serverLauncherGUI.updateWithSavedProfileData();
|
||||
this.currentProfile.updateConsoles();
|
||||
if (this.downloadAllJars) {
|
||||
Executors.newSingleThreadExecutor().execute(() -> {
|
||||
@ -244,7 +244,7 @@ public class Controller {
|
||||
}
|
||||
if (this.currentProfile.getRunInBackground()) {
|
||||
Executors.newSingleThreadExecutor().execute(Server::startServers);
|
||||
this.serverLauncherGUI.hide();
|
||||
this.serverLauncherGUI.hideToTray();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -159,7 +159,7 @@ public class Profile {
|
||||
for (int i = 0; i < collections.size(); i++) {
|
||||
if (collections.get(i).getName().equals(name)) {
|
||||
this.collections.remove(i);
|
||||
serverLauncherGui.update();
|
||||
serverLauncherGui.updateWithSavedProfileData();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user