remove prints, add comments
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dan Ballard 2022-01-26 08:48:35 -08:00
parent 04cf1e16c2
commit dc587f95f0
1 changed files with 6 additions and 4 deletions

View File

@ -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<void> 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',