Feat: Casono Browser file search #344

Merged
j.kropff merged 2 commits from feat/casono-browser-file-search into main 2026-05-17 17:10:49 +02:00
Showing only changes of commit 92d7294dfd - Show all commits
@@ -1944,13 +1944,23 @@ public class TaskbarController {
try { try {
Path start = Paths.get(System.getProperty("user.dir")); Path start = Paths.get(System.getProperty("user.dir"));
Path file = findFileUpAndDown(start, "index.html", "Gruppe-13"); Path file = start;
if (file == null) { while (file != null && !file.getFileName().toString().equals("Gruppe-13")) {
throw new IllegalStateException("index.html not found"); file = file.getParent();
} }
CasinoBrowserController.open(file.toUri().toString()); if (file == null) {
throw new IllegalStateException("Gruppe-13 not found");
}
Path target = file.resolve("outreach").resolve("index.html");
if (!Files.isRegularFile(target)) {
throw new IllegalStateException("outreach/index.html not found");
}
CasinoBrowserController.open(target.toUri().toString());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();