mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2025-02-08 17:30:40 +00:00
fix windows quit
This commit is contained in:
parent
cb390ce651
commit
70ce17e082
@ -131,14 +131,15 @@ public class DiskBrowser extends JFrame implements DiskSelectionListener, QuitLi
|
||||
quitAction.addQuitListener (diskLayoutPanel);
|
||||
quitAction.addQuitListener (this);
|
||||
|
||||
Application.getApplication ().setQuitHandler (new QuitHandler ()
|
||||
{
|
||||
@Override
|
||||
public void handleQuitRequestWith (QuitEvent e, QuitResponse response)
|
||||
if (Platform.MAC)
|
||||
Application.getApplication ().setQuitHandler (new QuitHandler ()
|
||||
{
|
||||
quitAction.quit ();
|
||||
}
|
||||
});
|
||||
@Override
|
||||
public void handleQuitRequestWith (QuitEvent e, QuitResponse response)
|
||||
{
|
||||
quitAction.quit ();
|
||||
}
|
||||
});
|
||||
|
||||
catalogPanel.setCloseTabAction (closeTabAction);
|
||||
|
||||
|
@ -183,7 +183,8 @@ public class TreeBuilder
|
||||
String type = pos > 0 && !f.isDirectory () ? name.substring (pos) : "";
|
||||
String size = f.isDirectory () ? "" : String.format ("%,14d", f.length ());
|
||||
text.append (String.format ("%s %-40.40s %s %-14s %s%n",
|
||||
f.isDirectory () ? "D" : " ", name, sdf.format (d), size, type));
|
||||
f.isDirectory () ? "D" : " ", name, sdf.format (d).replace (".", ""), size,
|
||||
type));
|
||||
}
|
||||
|
||||
if (text.length () > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user