Starting Multiple Instances Of Tool

in 2.7.2 this worked… I think

stops multiple instances of the mpe tool being opened…

function main()  
 local my_dialog = nil  
 if (my_dialog and my_dialog.invisible ) then -- only allows one dialog instance  
 my_dialog:close() return   

maybe its not a bug?

I might be just slow at the moment, but is this “.invisible” -property really there? Ain’t it “.visible”?