From 1fb6f5edfb772d5f2665b9777437011d798ac42b Mon Sep 17 00:00:00 2001 From: Simon Bennetts Date: Mon, 23 Dec 2024 16:09:59 +0000 Subject: [PATCH] Client: Use dev mode Signed-off-by: Simon Bennetts --- .../addon/client/ExtensionClientIntegration.java | 12 ++++++------ .../addon/client/ui/PopupMenuClientAttack.java | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addOns/client/src/main/java/org/zaproxy/addon/client/ExtensionClientIntegration.java b/addOns/client/src/main/java/org/zaproxy/addon/client/ExtensionClientIntegration.java index 10234feac0..7c1d4d2015 100644 --- a/addOns/client/src/main/java/org/zaproxy/addon/client/ExtensionClientIntegration.java +++ b/addOns/client/src/main/java/org/zaproxy/addon/client/ExtensionClientIntegration.java @@ -175,7 +175,7 @@ public void hook(ExtensionHook extensionHook) { extensionHook.getHookView().addWorkPanel(getClientDetailsPanel()); extensionHook.getHookView().addStatusPanel(getClientHistoryPanel()); - if (Constant.isDevBuild()) { + if (Constant.isDevMode()) { // Not for release .. yet ;) extensionHook.getHookMenu().addToolsMenuItem(getMenuItemCustomScan()); extensionHook @@ -746,7 +746,7 @@ public void resumeAllScans() { } private void addScanToUi(final ClientSpider scan) { - if (!Constant.isDevBuild()) { + if (!Constant.isDevMode()) { return; } @@ -768,7 +768,7 @@ public void sessionAboutToChange(Session session) { spiderScanController.reset(); if (hasView()) { - if (Constant.isDevBuild()) { + if (Constant.isDevMode()) { getClientSpiderPanel().reset(); } if (spiderDialog != null) { @@ -779,14 +779,14 @@ public void sessionAboutToChange(Session session) { @Override public void sessionChanged(final Session session) { - if (hasView() && Constant.isDevBuild()) { + if (hasView() && Constant.isDevMode()) { ThreadUtils.invokeAndWaitHandled(getClientSpiderPanel()::reset); } } @Override public void sessionScopeChanged(Session session) { - if (hasView() && Constant.isDevBuild()) { + if (hasView() && Constant.isDevMode()) { getClientSpiderPanel().sessionScopeChanged(session); } } @@ -798,7 +798,7 @@ public void sessionModeChanged(Mode mode) { } if (hasView()) { - if (Constant.isDevBuild()) { + if (Constant.isDevMode()) { getClientSpiderPanel().sessionModeChanged(mode); } getMenuItemCustomScan().setEnabled(!Mode.safe.equals(mode)); diff --git a/addOns/client/src/main/java/org/zaproxy/addon/client/ui/PopupMenuClientAttack.java b/addOns/client/src/main/java/org/zaproxy/addon/client/ui/PopupMenuClientAttack.java index 2ce87ecc49..adc3cfd3f0 100644 --- a/addOns/client/src/main/java/org/zaproxy/addon/client/ui/PopupMenuClientAttack.java +++ b/addOns/client/src/main/java/org/zaproxy/addon/client/ui/PopupMenuClientAttack.java @@ -43,7 +43,7 @@ public boolean isEnableForComponent(Component invoker) { JTree tree = (JTree) invoker; if (ClientMapPanel.CLIENT_TREE_NAME.equals(tree.getName())) { removeAll(); - if (Constant.isDevBuild()) { + if (Constant.isDevMode()) { // Not for release .. yet ;) add(new PopupClientSpider(clientMapPanel)); List nodes = clientMapPanel.getSelectedNodes();