We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60482d6 commit e1f5502Copy full SHA for e1f5502
browser/ui/views/bookmarks/saved_tab_groups/brave_saved_tab_group_button.cc
@@ -38,6 +38,17 @@ void BraveSavedTabGroupButton::Initialize() {
38
}
39
40
void BraveSavedTabGroupButton::UpdateButtonLayout() {
41
+ // This seems called after this class is removed from widget.
42
+ // If a tab is added to existing group and that tab is the only
43
+ // tab in the current window, it seems that window is closed
44
+ // when that group is in another window during this adding.
45
+ // I think SavedTabGroupBar should stop observing SavedTabGroupModel
46
+ // when it's removed from widget but it's upstream code and upstream
47
+ // doesn't have this issue.
48
+ if (!GetWidget()) {
49
+ return;
50
+ }
51
+
52
auto* cp = GetColorProvider();
53
54
// Note that upstream uses separate color IDs for the button background,
0 commit comments