Skip to content

Commit

Permalink
Merge pull request #6034 from psiinon/client/devmode
Browse files Browse the repository at this point in the history
Client: Use dev mode
  • Loading branch information
kingthorin authored Dec 23, 2024
2 parents d4bcdae + 1fb6f5e commit 5b25ee9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,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
Expand Down Expand Up @@ -754,7 +754,7 @@ public void resumeAllScans() {
}

private void addScanToUi(final ClientSpider scan) {
if (!Constant.isDevBuild()) {
if (!Constant.isDevMode()) {
return;
}

Expand All @@ -776,7 +776,7 @@ public void sessionAboutToChange(Session session) {
spiderScanController.reset();

if (hasView()) {
if (Constant.isDevBuild()) {
if (Constant.isDevMode()) {
getClientSpiderPanel().reset();
}
if (spiderDialog != null) {
Expand All @@ -787,14 +787,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);
}
}
Expand All @@ -806,7 +806,7 @@ public void sessionModeChanged(Mode mode) {
}

if (hasView()) {
if (Constant.isDevBuild()) {
if (Constant.isDevMode()) {
getClientSpiderPanel().sessionModeChanged(mode);
}
getMenuItemCustomScan().setEnabled(!Mode.safe.equals(mode));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ClientNode> nodes = clientMapPanel.getSelectedNodes();
Expand Down

0 comments on commit 5b25ee9

Please sign in to comment.