We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ddd420 commit 50ddf5eCopy full SHA for 50ddf5e
lib/widgets/titlebar_safe_area.dart
@@ -19,7 +19,7 @@ class _MacOSTitlebarSafeAreaState extends State<_MacOSTitlebarSafeArea> {
19
/// Updates the height of the titlebar, if necessary.
20
Future<void> _updateTitlebarHeight() async {
21
final newTitlebarHeight = await WindowManipulator.getTitlebarHeight();
22
- if (_titlebarHeight != newTitlebarHeight) {
+ if (_titlebarHeight != newTitlebarHeight && newTitlebarHeight >= 0) {
23
setState(() {
24
_titlebarHeight = newTitlebarHeight;
25
});
0 commit comments