profiles: Merge nested if statements
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user