fixed home directory button
This commit is contained in:
parent
d7bcc04893
commit
2b3f037c85
@ -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("↑");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user