Skip to content

Commit

Permalink
YaruWindowTitleBar.ensureInitialized(): clear cached window states (#685
Browse files Browse the repository at this point in the history
)

This allows getting rid of any previously cached window states during
the test set up phase.
  • Loading branch information
jpnurmi committed Mar 28, 2023
1 parent fc99c7b commit 194f784
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/widgets/yaru_title_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ class YaruWindowTitleBar extends StatelessWidget
Size(0, style == YaruTitleBarStyle.hidden ? 0 : kYaruTitleBarHeight);

static Future<void> ensureInitialized() {
_windowStates.clear();
return YaruWindow.ensureInitialized().then((window) => window.hideTitle());
}

Expand Down

0 comments on commit 194f784

Please sign in to comment.