From 194f784f274ba5f9382139eee8c8ef2dc94e205d Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 28 Mar 2023 09:25:52 +0200 Subject: [PATCH] YaruWindowTitleBar.ensureInitialized(): clear cached window states (#685) This allows getting rid of any previously cached window states during the test set up phase. --- lib/src/widgets/yaru_title_bar.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/widgets/yaru_title_bar.dart b/lib/src/widgets/yaru_title_bar.dart index 92a45a22e..157e4ec6b 100644 --- a/lib/src/widgets/yaru_title_bar.dart +++ b/lib/src/widgets/yaru_title_bar.dart @@ -481,6 +481,7 @@ class YaruWindowTitleBar extends StatelessWidget Size(0, style == YaruTitleBarStyle.hidden ? 0 : kYaruTitleBarHeight); static Future ensureInitialized() { + _windowStates.clear(); return YaruWindow.ensureInitialized().then((window) => window.hideTitle()); }