Skip to content

Commit

Permalink
Version: 3.0 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
gh0stkey committed May 7, 2024
1 parent ba079ab commit a6cd013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,7 @@ protected void done() {
ByteArray[] result = (ByteArray[]) get();
requestEditor.setRequest(HttpRequest.httpRequest(MessageEntry.getRequestResponse().httpService(), result[0]));
responseEditor.setResponse(HttpResponse.httpResponse(result[1]));
} catch (Exception e) {
e.printStackTrace();
} catch (Exception ignored) {
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/hae/component/rule/Rules.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public class Rules extends JTabbedPane {
private final MontoyaApi api;
private final ConfigLoader configLoader;
private ConfigLoader configLoader;
private final RuleProcessor ruleProcessor;
private final JTextField ruleGroupNameTextField;

Expand Down Expand Up @@ -101,6 +101,8 @@ public void mousePressed(MouseEvent e) {

public void reloadRuleGroup() {
removeAll();

this.configLoader = new ConfigLoader(api);
Config.globalRules.keySet().forEach(i-> addTab(i, new Rule(api, configLoader, hae.Config.globalRules.get(i), this)));
addTab("...", null);
}
Expand Down

0 comments on commit a6cd013

Please sign in to comment.