Meshcore can now clear console msg.

This commit is contained in:
Ylian Saint-Hilaire 2019-05-20 16:07:49 -07:00
parent 3e5afa84c7
commit 4c7b814075
3 changed files with 17 additions and 11 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "meshcentral", "name": "meshcentral",
"version": "0.3.4-t", "version": "0.3.4-v",
"keywords": [ "keywords": [
"Remote Management", "Remote Management",
"Intel AMT", "Intel AMT",

File diff suppressed because one or more lines are too long

View File

@ -4471,9 +4471,11 @@
desktop.onStateChanged = onDesktopStateChange; desktop.onStateChanged = onDesktopStateChange;
desktop.onConsoleMessageChange = function () { desktop.onConsoleMessageChange = function () {
p11clearConsoleMsg(); p11clearConsoleMsg();
QH('p11DeskConsoleMsg', EscapeHtml(desktop.consoleMessage).split('\n').join('<br />')); if (desktop.consoleMessage) {
QV('p11DeskConsoleMsg', true); QH('p11DeskConsoleMsg', EscapeHtml(desktop.consoleMessage).split('\n').join('<br />'));
p11DeskConsoleMsgTimer = setTimeout(p11clearConsoleMsg, 8000); QV('p11DeskConsoleMsg', true);
p11DeskConsoleMsgTimer = setTimeout(p11clearConsoleMsg, 8000);
}
} }
desktop.m.CompressionLevel = desktopsettings.quality; // Number from 1 to 100. 50 or less is best. desktop.m.CompressionLevel = desktopsettings.quality; // Number from 1 to 100. 50 or less is best.
desktop.m.ScalingLevel = desktopsettings.scaling; desktop.m.ScalingLevel = desktopsettings.scaling;
@ -4969,9 +4971,11 @@
terminal.onStateChanged = onTerminalStateChange; terminal.onStateChanged = onTerminalStateChange;
terminal.onConsoleMessageChange = function () { terminal.onConsoleMessageChange = function () {
p12clearConsoleMsg(); p12clearConsoleMsg();
QH('p12TermConsoleMsg', EscapeHtml(terminal.consoleMessage).split('\n').join('<br />')); if (terminal.consoleMessage) {
QV('p12TermConsoleMsg', true); QH('p12TermConsoleMsg', EscapeHtml(terminal.consoleMessage).split('\n').join('<br />'));
p12TermConsoleMsgTimer = setTimeout(p12clearConsoleMsg, 8000); QV('p12TermConsoleMsg', true);
p12TermConsoleMsgTimer = setTimeout(p12clearConsoleMsg, 8000);
}
} }
terminal.Start(terminalNode._id); terminal.Start(terminalNode._id);
terminal.contype = 1; terminal.contype = 1;
@ -5094,9 +5098,11 @@
files.onStateChanged = onFilesStateChange; files.onStateChanged = onFilesStateChange;
files.onConsoleMessageChange = function () { files.onConsoleMessageChange = function () {
p13clearConsoleMsg(); p13clearConsoleMsg();
QH('p13FilesConsoleMsg', EscapeHtml(files.consoleMessage).split('\n').join('<br />')); if (files.consoleMessage) {
QV('p13FilesConsoleMsg', true); QH('p13FilesConsoleMsg', EscapeHtml(files.consoleMessage).split('\n').join('<br />'));
p13FilesConsoleMsgTimer = setTimeout(p13clearConsoleMsg, 8000); QV('p13FilesConsoleMsg', true);
p13FilesConsoleMsgTimer = setTimeout(p13clearConsoleMsg, 8000);
}
} }
files.Start(filesNode._id); files.Start(filesNode._id);
} else { } else {