diff --git a/lib/components/shared/page_window_title_bar.dart b/lib/components/shared/page_window_title_bar.dart index cd70756d2..b46795c17 100644 --- a/lib/components/shared/page_window_title_bar.dart +++ b/lib/components/shared/page_window_title_bar.dart @@ -9,11 +9,17 @@ import 'dart:math'; import 'package:flutter/foundation.dart' show kIsWeb; import 'dart:io' show Platform; import 'package:flutter_desktop_tools/flutter_desktop_tools.dart'; +import 'package:local_notifier/local_notifier.dart'; final closeNotification = DesktopTools.createNotification( title: 'Spotube', message: 'Running in background. Minimized to System Tray', -); + actions: [ + LocalNotificationAction(text: 'Close The App'), + ], +)?..onClickAction = (value) { + windowManager.close(); + }; class PageWindowTitleBar extends StatefulHookWidget implements PreferredSizeWidget {