Skip to content

Commit

Permalink
fixes a bug in header_bar.dart where a platform check is done prior t…
Browse files Browse the repository at this point in the history
…o checking if application is running in web
  • Loading branch information
cole committed Nov 11, 2023
1 parent ef76db3 commit e2e5c05
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 e2e5c05

Please sign in to comment.