mirror of
https://github.com/lubosz/overte.git
synced 2025-04-17 00:57:44 +02:00
Added a generic Window Notification for Feedback
This allows to use the existing Pop-up notifications for generic notification messages
This commit is contained in:
parent
6302ae6bd5
commit
7b02d1073a
1 changed files with 4 additions and 0 deletions
|
@ -521,6 +521,9 @@ function onEditError(msg) {
|
|||
createNotification(wordWrap(msg), NotificationType.EDIT_ERROR);
|
||||
}
|
||||
|
||||
function onNotify(msg) {
|
||||
createNotification(wordWrap(msg), NotificationType.UNKNOWN); // Needs a generic notification system for user feedback, thus using this
|
||||
}
|
||||
|
||||
function onSnapshotTaken(pathStillSnapshot, pathAnimatedSnapshot, notify) {
|
||||
if (notify) {
|
||||
|
@ -637,6 +640,7 @@ Window.domainConnectionRefused.connect(onDomainConnectionRefused);
|
|||
Window.snapshotTaken.connect(onSnapshotTaken);
|
||||
Window.processingGif.connect(processingGif);
|
||||
Window.notifyEditError = onEditError;
|
||||
Window.notify = onNotify;
|
||||
|
||||
setup();
|
||||
|
||||
|
|
Loading…
Reference in a new issue