Please this issue has not been solved?
We are using version 1.0 and do also get a duplicate taskbar item when creating a new window. This is unwanted behaviour.
function NewWindow(app, winURL, winTitle, winHeight, winWidth, winModal, winMax, winRes, winCollap) {
if (winTitle == '' || winTitle == undefined) { winTitle = 'Teste' }
if (winCollap == '' || winCollap == undefined) { winCollap = false }
if (winRes == '' || winRes == undefined) { winRes = false }
if (winModal == '' || winModal == undefined) { winModal = false }
if (winHeight == '' || winHeight == undefined) { winHeight = 500 }
if (winWidth == '' || winWidth == undefined) { winWidth = 500 }
app.getDesktop().createWindow({
maximizable: winMax,
minimizable: winMax,
resizable: winRes,
collapsible: winCollap,
constrain: false,
hidden: false,
title: winTitle,
height: winHeight,
width: winWidth,
modal: winModal,
frame: true,
autoLoad: { maskMsg: "Carregando...", showMask: true, mode: "iframe", url: winURL}
}).show();
This will create duplicate taskbar items. See attachment.
Regards,
Martin.