fix: better save logic

This commit is contained in:
harlekin
2021-10-02 19:38:04 +00:00
committed by Sheepit Renderfarm
parent bd3fc92634
commit 87ff09d5e5
6 changed files with 335 additions and 326 deletions

View File

@@ -291,8 +291,8 @@ public class GuiSwing extends JFrame implements Gui {
@Override public void successfulAuthenticationEvent(String publickey) {
if (settingsLoader != null) {
if (publickey != null && activitySettings.getLaunchConfig().getLogin().equals(settingsLoader.getLogin())) {
settingsLoader.setPassword(publickey);
if (publickey != null && settingsLoader.getLogin().isLaunchCommand() == false) {
settingsLoader.getPassword().setValue(publickey);
}
settingsLoader.saveFile();
}