diff --git a/InjectUI/src/cn/yapeteam/injector/MainFrame.java b/InjectUI/src/cn/yapeteam/injector/MainFrame.java index 99e3b9c..b71b8f9 100644 --- a/InjectUI/src/cn/yapeteam/injector/MainFrame.java +++ b/InjectUI/src/cn/yapeteam/injector/MainFrame.java @@ -17,7 +17,6 @@ public class MainFrame extends JFrame { private JPanel panel; private JButton inject; - private JComboBox method; private JComboBox process; private JProgressBar progressBar1; private JProgressBar progressBar2; @@ -49,7 +48,7 @@ public void windowClosing(WindowEvent e) { getRootPane().setDefaultButton(inject); inject.addActionListener(e -> { - if (!targets.isEmpty() && process.getSelectedIndex() != -1 && method.getSelectedIndex() != -1) { + if (!targets.isEmpty() && process.getSelectedIndex() != -1) { int pid = targets.get(process.getSelectedIndex()).b; try { VirtualMachine virtualMachine = VirtualMachine.attach(String.valueOf(pid)); @@ -66,7 +65,6 @@ public void windowClosing(WindowEvent e) { return; } process.setVisible(false); - method.setVisible(false); inject.setVisible(false); } });