fixed home directory button

This commit is contained in:
Radek Davidek 2026-02-20 21:59:20 +01:00
parent d7bcc04893
commit 2b3f037c85

View File

@ -181,10 +181,8 @@ public class FilePanel extends JPanel {
JButton homeButton = new JButton("~");
homeButton.setToolTipText("Home Directory");
homeButton.addActionListener(e -> {
FilePanelTab currentTab = getCurrentTab();
if (currentTab != null) {
currentTab.loadDirectory(new File(System.getProperty("user.home")));
}
// Use panel-level loadDirectory so drive combo is updated consistently.
loadDirectory(new File(System.getProperty("user.home")));
});
JButton upButton = new JButton("");