Skip to content

Commit

Permalink
Merge pull request #88 from The-Funk/bugfix_platform_check_in_header_bar
Browse files Browse the repository at this point in the history
fix: header_bar.dart does a platform check prior to checking kIsWeb
  • Loading branch information
prateekmedia committed Dec 19, 2023
2 parents ef76db3 + e2e5c05 commit fac0f49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/widgets/adw/header_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ class _AdwHeaderBarState extends State<AdwHeaderBar> {
);
}

if (Platform.isMacOS) {
if (kIsWeb) {
return;
} else if (Platform.isMacOS) {
updateSep('close,minimize,maximize:');
} else if (Platform.isLinux) {
final schema = GSettings('org.gnome.desktop.wm.preferences');
Expand Down

0 comments on commit fac0f49

Please sign in to comment.