Skip to content

Commit 792044f

Browse files
committed
Only build if native titlebar changes
1 parent e82b9d4 commit 792044f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/material_leap/lib/src/widgets/window.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class WindowTitleBar<C extends LeapSettingsBlocBaseMixin<M>,
7272
if (isDesktop && !inView) ...[
7373
if (actions.isNotEmpty)
7474
BlocBuilder<C, M>(
75+
buildWhen: (previous, current) =>
76+
previous.nativeTitleBar != current.nativeTitleBar,
7577
builder: (context, settings) {
7678
if (settings.nativeTitleBar) {
7779
return const SizedBox.shrink();

0 commit comments

Comments
 (0)