mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-20 18:23:21 +00:00
Fixed bug in message-box (user-consent) introduced in older zenity platforms
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -367,7 +367,7 @@ function linux_messageBox()
|
|||||||
}
|
}
|
||||||
if (this.zenity)
|
if (this.zenity)
|
||||||
{
|
{
|
||||||
if (!this.zenity.extra && layout.length > 1)
|
if (!this.zenity.extra && Array.isArray(layout) && layout.length > 1)
|
||||||
{
|
{
|
||||||
ret._rej('This system does not support custom button layouts');
|
ret._rej('This system does not support custom button layouts');
|
||||||
return (ret);
|
return (ret);
|
||||||
|
|||||||
Reference in New Issue
Block a user