profiles: Merge nested if statements
This commit is contained in:
@@ -87,14 +87,11 @@ 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);
|
||||||
{
|
this.shutDown();
|
||||||
panel = injector.getInstance(ProfilesPanel.class);
|
this.startUp();
|
||||||
this.shutDown();
|
|
||||||
this.startUp();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user