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,15 +87,12 @@ public class ProfilesPlugin extends Plugin
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) throws Exception 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); panel = injector.getInstance(ProfilesPanel.class);
this.shutDown(); this.shutDown();
this.startUp(); this.startUp();
} }
} }
}
} }