From 0145bebb4be08abd96e000d36fdb7456dfafe975 Mon Sep 17 00:00:00 2001 From: sixteenmillimeter Date: Sun, 9 Aug 2020 20:03:48 -0400 Subject: [PATCH] Turn off notifier if errors out --- app/lib/ui/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/ui/index.js b/app/lib/ui/index.js index 8fdfb1c..39ded17 100644 --- a/app/lib/ui/index.js +++ b/app/lib/ui/index.js @@ -52,12 +52,14 @@ gui.notify = function (title, message) { }, function (err, response) { // Response is response from notification if (err) { + gui.notifierWorking = false; log.error(`Error with notification`, err); return reject(err); } return resolve(true); }); } catch (err) { + gui.notifierWorking = false; //notify-send is not found //determine an alternate for raspian //this feels like a hack