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