Fixed file chooser style / Fixed sector save invisibility

This commit is contained in:
Anuken
2018-12-06 22:27:39 -05:00
parent 4e1f734af7
commit 81c24b3de1
3 changed files with 4 additions and 2 deletions

View File

@ -127,6 +127,7 @@ public class Saves{
saveMap.put(slot.index, slot); saveMap.put(slot.index, slot);
slot.meta = SaveIO.getData(slot.index); slot.meta = SaveIO.getData(slot.index);
current = slot; current = slot;
slot.meta.sector = invalidSector;
saveSlots(); saveSlots();
return slot; return slot;
} }

View File

@ -198,7 +198,7 @@ public class FileChooser extends FloatingDialog{
//macs are confined to the Downloads/ directory //macs are confined to the Downloads/ directory
if(!OS.isMac){ if(!OS.isMac){
Image upimage = new Image("icon-folder-parent"); Image upimage = new Image("icon-folder-parent");
TextButton upbutton = new TextButton(".." + directory.toString(), "clear"); TextButton upbutton = new TextButton(".." + directory.toString(), "clear-toggle");
upbutton.clicked(() -> { upbutton.clicked(() -> {
directory = directory.parent(); directory = directory.parent();
updateFiles(true); updateFiles(true);
@ -220,7 +220,7 @@ public class FileChooser extends FloatingDialog{
String filename = file.name(); String filename = file.name();
TextButton button = new TextButton(shorten(filename), "clear"); TextButton button = new TextButton(shorten(filename), "clear-toggle");
group.add(button); group.add(button);
button.clicked(() -> { button.clicked(() -> {

View File

@ -161,6 +161,7 @@ public class LoadDialog extends FloatingDialog{
control.saves.importSave(file); control.saves.importSave(file);
setup(); setup();
}catch(IOException e){ }catch(IOException e){
e.printStackTrace();
ui.showError(Bundles.format("text.save.import.fail", Strings.parseException(e, false))); ui.showError(Bundles.format("text.save.import.fail", Strings.parseException(e, false)));
} }
}else{ }else{