Skip to content

Commit

Permalink
Remove handlePackageTasks(); if there is a location package, it will …
Browse files Browse the repository at this point in the history
…be selected in startPackagesTask(), which triggers the packagesListView listener
  • Loading branch information
javierllorente committed Oct 29, 2024
1 parent 2ddf01b commit f4117b7
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/main/java/com/javierllorente/obsfx/BrowserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ private void load(String location) {
tabPane.getTabs().remove(filesTab);
tabPane.getTabs().remove(revisionsTab);
handleProjectTasks();
} else {
handlePackageTasks();
}

loaded = true;
Expand Down Expand Up @@ -284,32 +282,6 @@ private void handleProjectTasks() {
}
}
}

private void handlePackageTasks() {
int tabIndex = tabPane.getSelectionModel().getSelectedIndex();
logger.log(Level.INFO, "tabIndex = {0}", tabIndex);
String prj = getLocationProject();
String pkg = getLocationPackage();

switch (tabIndex) {
case 0 -> {
startPkgMetaConfigTask(prj, pkg);
startLatestRevisionTask(prj, pkg);
startBuildResultsTask(prj, pkg);
}
case 1 -> {
filesController.clear();
startFilesTask(prj, pkg);
}
case 2 -> {
revisionsController.clear();
startRevisionsTask(prj, pkg);
}
case 3 -> {
startRequestsTask(prj, pkg);
}
}
}

private void initPackageListView() {
packagesListView.getSelectionModel().selectedItemProperty()
Expand Down

0 comments on commit f4117b7

Please sign in to comment.