You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
desktopNotification({body: 'Connection to device lost. Please check your internet connection and reconnect.'});
99
+
window.loadFile('../renderer/index.html',{
100
+
query: {message: 'timeout'}
101
+
});
102
+
grblBridge.stop();
103
+
break;
104
+
case'err:tiltCheck':
105
+
case'err:movingCheck':
106
+
desktopNotification({body: 'Movement detected!\nThe current job was aborted because the device was moved during operation.',urgency: 'critical'});
107
+
break;
108
+
case'err:flameCheck':
109
+
desktopNotification({body: 'Flame detected!\nThe current job was aborted because a flame was detected. Please check the state of the device immediately.',urgency: 'critical'});
110
+
break;
111
+
case'err:limitCheck':
112
+
desktopNotification({body: 'Limit reached!\nThe current job was aborted because a limit switch was activated.',urgency: 'critical'});
113
+
break;
114
+
case'grbl:complete':
115
+
desktopNotification({body: 'LightBurn upload complete!\nou can now start the job by pressing the start button on the device.'});
116
+
break;
117
+
case'grbl:timeout':
118
+
desktopNotification({body: 'LightBurn upload failed!\nFile could not be sent to the device.'});
toastr.error('The current job was aborted because a limit switch was activated.','Limit reached!',{timeOut: 8000});
133
134
break;
134
135
case'grbl:started':
135
-
toastr.success('Please wait until the file is received and the upload is complete.','Receiving data from LightBurn...');
136
+
uploadNotification=toastr.success('Please wait until the file is received and the upload is complete.','Receiving data from LightBurn...',{timeOut: 0});
136
137
break;
137
-
case'grbl:complete':
138
+
case'grbl:complete':
139
+
uploadNotification.remove();
138
140
toastr.success('You can now start the job by pressing the start button on the device.','LightBurn upload complete');
139
141
break;
140
142
case'grbl:timeout':
143
+
uploadNotification.remove();
141
144
toastr.success('File could not be sent to the device.','LightBurn upload failed');
0 commit comments