Browse Source

notification: check errors in showing notification

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
ee2a2a936e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/notification.vala

+ 5
- 1
src/notification.vala View File

@ -68,6 +68,10 @@ class NotificationHandler : Object, PacketHandlerInterface {
var notif = new Notify.Notification(app, ticker,
"dialog-information");
notif.show();
try {
notif.show();
} catch (Error e) {
critical("failed to show notification: %s", e.message);
}
}
}

Loading…
Cancel
Save