fix: better save logic
This commit is contained in:
committed by
Sheepit Renderfarm
parent
bd3fc92634
commit
87ff09d5e5
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user