mirror of
https://gitlab.com/Monsterovich/lanemu.git
synced 2024-07-07 06:01:16 +02:00
Improved invitation saving
This commit is contained in:
parent
cb609712e9
commit
676789508a
|
@ -261,9 +261,9 @@ public class InviteWindow extends javax.swing.JDialog implements ClipboardOwner
|
|||
try {
|
||||
File file = fileChooser.getSelectedFile();
|
||||
try (FileOutputStream out = new FileOutputStream(file)) {
|
||||
AdvProperties p = new AdvProperties(txtInvitation.getText());
|
||||
p.store(out, null);
|
||||
txtInvitation.setText(p.toString(null, true, true));
|
||||
String invitation = new AdvProperties(txtInvitation.getText()).toString(null, true, true);
|
||||
out.write(invitation.getBytes());
|
||||
txtInvitation.setText(invitation);
|
||||
}
|
||||
} catch (IOException iOException) {
|
||||
Logger.getLogger("").log(Level.WARNING, null, iOException);
|
||||
|
|
Loading…
Reference in a new issue