Bug fixes for inventory setup (#673)

* Fix for inventory setup

*  Fix bug where toggling plugin would fail to load setups from config

*  Fix bug where toggling plugin would fail to load setups from config

* Revert
This commit is contained in:
James
2019-06-20 18:08:30 -07:00
committed by Kyleeld
parent f5a40623f0
commit 711e6c1a82

View File

@@ -288,7 +288,6 @@ public class InventorySetupPlugin extends Plugin
panel.addInventorySetup(key);
}
highlightDifference = false;
}
@Subscribe
@@ -333,17 +332,20 @@ public class InventorySetupPlugin extends Plugin
// set the highlighting off if login screen shows up
case LOGIN_SCREEN:
highlightDifference = false;
final String setupName = panel.getSelectedInventorySetup();
if (!setupName.isEmpty())
{
panel.setCurrentInventorySetup(setupName);
}
break;
// set highlighting
case LOGGED_IN:
highlightDifference = config.getHighlightDifferences();
break;
default:
return;
}
final String setupName = panel.getSelectedInventorySetup();
if (!setupName.isEmpty())
{
panel.setCurrentInventorySetup(setupName);
}
}