menu entry swapper: fix shift click for deposit box

This commit is contained in:
Håkon Rosseland Paulsen
2020-04-16 22:54:55 +02:00
committed by GitHub
parent af7af0623a
commit 612a23a01f

View File

@@ -317,9 +317,10 @@ public class MenuEntrySwapperPlugin extends Plugin
// is what builds the context menu row which is what the eventual click will use
// Swap to shift-click deposit behavior
// Deposit- op 2 is the current withdraw amount 1/5/10/x
// Deposit- op 1 is the current withdraw amount 1/5/10/x for deposit box interface
// Deposit- op 2 is the current withdraw amount 1/5/10/x for bank interface
if (shiftModifier && config.bankDepositShiftClick() != ShiftDepositMode.OFF
&& menuEntryAdded.getType() == MenuAction.CC_OP.getId() && menuEntryAdded.getIdentifier() == 2
&& menuEntryAdded.getType() == MenuAction.CC_OP.getId() && (menuEntryAdded.getIdentifier() == 2 || menuEntryAdded.getIdentifier() == 1)
&& menuEntryAdded.getOption().startsWith("Deposit-"))
{
ShiftDepositMode shiftDepositMode = config.bankDepositShiftClick();