Show only last critical error on client #PL-1989

This commit is contained in:
Yuriy Artamonov 2013-03-28 09:26:29 +00:00
parent 1b9ad4a018
commit fea2fff7c9

View File

@ -1184,11 +1184,16 @@ public class ApplicationConnection {
}
if (html.length() != 0) {
if (errorNotification != null)
errorNotification.hide();
/* 45 min */
VNotification n = new VNotification(1000 * 60 * 45);
n.addEventListener(new NotificationRedirect(url));
n.show(html, VNotification.CENTERED_TOP,
VNotification.STYLE_SYSTEM);
errorNotification = n;
} else {
redirect(url);
}