Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hud: Add main toolbar button stats #1363

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- Stats counter to the main toolbar button (Issue 8375).

## [0.19.0] - 2024-05-07
### Changed
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/zaproxy/zap/extension/hud/ExtensionHUD.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import org.zaproxy.zap.extension.websocket.ExtensionWebSocket;
import org.zaproxy.zap.utils.DesktopUtils;
import org.zaproxy.zap.utils.DisplayUtils;
import org.zaproxy.zap.utils.Stats;
import org.zaproxy.zap.view.OverlayIcon;
import org.zaproxy.zap.view.ZapMenuItem;
import org.zaproxy.zap.view.ZapToggleButton;
Expand Down Expand Up @@ -368,6 +369,7 @@ private ZapToggleButton getHudButton() {
hudEnabledForDesktop = hudButton.isSelected();
getHudParam().setEnabledForDesktop(hudEnabledForDesktop);
setZapCanGetFocus(!hudEnabledForDesktop);
Stats.incCounter("stats.ui.maintoolbar.button.hud");
});
}
return hudButton;
Expand Down
Loading