From dc587f95f05d1f6fa9abe77779e8e90ad6f60139 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 26 Jan 2022 08:48:35 -0800 Subject: [PATCH] remove prints, add comments --- lib/notification_manager.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/notification_manager.dart b/lib/notification_manager.dart index aa7b84a1..c6463935 100644 --- a/lib/notification_manager.dart +++ b/lib/notification_manager.dart @@ -48,16 +48,16 @@ class WindowsNotificationManager implements NotificationsManager { ); service.stream.listen((event) { + // the user closed the notification of the OS timed it out if (event is ToastDismissed) { - print('Toast was dismissed.'); active = false; } + // clicked if (event is ToastActivated) { - print('Toast was clicked.'); - active = false; + active = false; } + // if a supplied action was clicked if (event is ToastInteracted) { - print('${event.action} action in the toast was clicked.'); active = false; } }); @@ -66,6 +66,8 @@ class WindowsNotificationManager implements NotificationsManager { Future notify(String message) async { if (!globalAppState.focus) { if (!active) { + // One string of bold text on the first line (title), + // one string (subtitle) of regular text wrapped across the second and third lines. Toast toast = new Toast( type: ToastType.text02, title: 'Cwtch',