profiles: Merge nested if statements

This commit is contained in:
sdburns1998
2019-07-07 17:54:26 +02:00
parent b1720a256c
commit a1b233056b

View File

@@ -87,14 +87,11 @@ public class ProfilesPlugin extends Plugin
@Subscribe
private void onConfigChanged(ConfigChanged event) throws Exception
{
if (event.getGroup().equals("profiles"))
if (event.getGroup().equals("profiles") && event.getKey().equals("rememberPassword"))
{
if (event.getKey().equals("rememberPassword"))
{
panel = injector.getInstance(ProfilesPanel.class);
this.shutDown();
this.startUp();
}
panel = injector.getInstance(ProfilesPanel.class);
this.shutDown();
this.startUp();
}
}