mirror of
https://github.com/morgan9e/helium
synced 2026-04-14 00:14:20 +09:00
helium/ui/tabs: fix in-place pinned tab muting/unmuting (#619)
fixes #586
This commit is contained in:
@@ -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();
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user