Splits the GUI into more components to increase maintainability

This commit is contained in:
2020-08-20 18:33:45 +02:00
parent 52946c9aec
commit 5b15fea7b3
9 changed files with 707 additions and 466 deletions

View File

@ -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();
}
}

View File

@ -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;
}
}