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("~");
|
JButton homeButton = new JButton("~");
|
||||||
homeButton.setToolTipText("Home Directory");
|
homeButton.setToolTipText("Home Directory");
|
||||||
homeButton.addActionListener(e -> {
|
homeButton.addActionListener(e -> {
|
||||||
FilePanelTab currentTab = getCurrentTab();
|
// Use panel-level loadDirectory so drive combo is updated consistently.
|
||||||
if (currentTab != null) {
|
loadDirectory(new File(System.getProperty("user.home")));
|
||||||
currentTab.loadDirectory(new File(System.getProperty("user.home")));
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
JButton upButton = new JButton("↑");
|
JButton upButton = new JButton("↑");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user