helium/ui/tabs: fix in-place pinned tab muting/unmuting (#619)

fixes #586
This commit is contained in:
wukko
2025-12-15 14:53:17 +06:00
committed by GitHub
parent 0ec967b7d6
commit 75d044b9a6

View File

@@ -186,7 +186,7 @@
}
bool Tab::ShouldRenderAsNormalTab() const {
@@ -1254,15 +1253,25 @@ void Tab::UpdateTabIconNeedsAttentionBlo
@@ -1254,15 +1253,29 @@ void Tab::UpdateTabIconNeedsAttentionBlo
}
int Tab::GetWidthOfLargestSelectableRegion() const {
@@ -209,6 +209,10 @@
+
+ int selectable_region = width();
+
+ if (!ShouldRenderAsNormalTab()) {
+ return selectable_region;
+ }
+
+ if (alert_indicator_button_->GetVisible()) {
+ selectable_region = alert_indicator_button_->bounds().right();
+ }