fix the indentation and notification timeout

This commit is contained in:
Ankit kumar yadav 2026-03-27 11:09:40 +05:30
parent 5d7e66bd87
commit 5c7b2c3fae
1 changed files with 3 additions and 2 deletions

View File

@ -1133,11 +1133,12 @@ const UI = {
} }
const elapsedTime = Date.now() - UI.firstReconnectTime; const elapsedTime = Date.now() - UI.firstReconnectTime;
// Check if we've exceeded the max reconnect time // Check if we've exceeded the max reconnect time
if ((Date.now() - UI.firstReconnectTime) >= maxTime) { if ((Date.now() - UI.firstReconnectTime) >= maxTime) {
// hiding the previous status message // hiding the previous status message
UI.hideStatus(); UI.hideStatus();
UI.showStatus(_("Maximum reconnect attempts reached. Failed to connect to the server."), 'error', 1000*60*240); // Show for 4 hours // Showing this notification for long time, unless user will close this manually or reLaunch the VNC console
UI.showStatus(_("Maximum reconnect attempts reached. Failed to connect to the server."), 'error', Infinity);
UI.updateVisualState('disconnected'); UI.updateVisualState('disconnected');
return; return;
} }