mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-22 11:13:21 +00:00
Added title support to xmessage
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -326,7 +326,7 @@ function linux_messageBox()
|
|||||||
else if (this.xmessage)
|
else if (this.xmessage)
|
||||||
{
|
{
|
||||||
// title, caption, timeout, layout
|
// title, caption, timeout, layout
|
||||||
ret.child = require('child_process').execFile(this.xmessage.path, ['xmessage', '-center', '-buttons', layout == null ? 'No:1,Yes:2' : 'OK:2', '-timeout', timeout.toString(), '-default', layout==null?'No':'OK', caption], { uid: uid, env: { XAUTHORITY: xinfo.xauthority ? xinfo.xauthority : "", DISPLAY: xinfo.display } });
|
ret.child = require('child_process').execFile(this.xmessage.path, ['xmessage', '-center', '-buttons', layout == null ? 'No:1,Yes:2' : 'OK:2', '-timeout', timeout.toString(), '-default', layout==null?'No':'OK', '-title', title, caption], { uid: uid, env: { XAUTHORITY: xinfo.xauthority ? xinfo.xauthority : "", DISPLAY: xinfo.display } });
|
||||||
ret.child.stdout.on('data', function (c) { });
|
ret.child.stdout.on('data', function (c) { });
|
||||||
ret.child.stderr.on('data', function (c) { });
|
ret.child.stderr.on('data', function (c) { });
|
||||||
|
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ function Toaster()
|
|||||||
{
|
{
|
||||||
if (require('message-box').xmessage)
|
if (require('message-box').xmessage)
|
||||||
{
|
{
|
||||||
retVal._mb = require('message-box').create('Mesh Central', caption, 5, 'OK');
|
retVal._mb = require('message-box').create(title, caption, 5, 'OK');
|
||||||
retVal._mb.ret = retVal;
|
retVal._mb.ret = retVal;
|
||||||
retVal._mb.then(function () { this.ret._res('DISMISSED'); }, function () { this.ret._res('DISMISSED'); });
|
retVal._mb.then(function () { this.ret._res('DISMISSED'); }, function () { this.ret._res('DISMISSED'); });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user