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