fix windows quit

This commit is contained in:
Denis Molony 2018-07-20 15:08:27 +10:00
parent cb390ce651
commit 70ce17e082
2 changed files with 10 additions and 8 deletions

View File

@ -131,6 +131,7 @@ public class DiskBrowser extends JFrame implements DiskSelectionListener, QuitLi
quitAction.addQuitListener (diskLayoutPanel);
quitAction.addQuitListener (this);
if (Platform.MAC)
Application.getApplication ().setQuitHandler (new QuitHandler ()
{
@Override

View File

@ -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)