mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
#488: Added check for initial tmp image
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
let lastHeadImg = null;
|
||||
|
||||
notificationButton = null
|
||||
let notificationButton = null;
|
||||
|
||||
const regExpTempImage = /.*tmp.*.png/g;
|
||||
|
||||
onUiUpdate(function(){
|
||||
if(notificationButton == null){
|
||||
@@ -23,6 +25,8 @@ onUiUpdate(function(){
|
||||
|
||||
if (headImg == null || headImg == lastHeadImg) return;
|
||||
|
||||
if (headImg.search(regExpTempImage) != -1) return;
|
||||
|
||||
lastHeadImg = headImg;
|
||||
|
||||
// play notification sound if available
|
||||
|
||||
Reference in New Issue
Block a user