squashr1979 wrote:Calling setTimeout with a string is bad. They recommend you always use a function. I still have no idea why DMT would break this.
I found out why DMT broke this. DMT was using window.setTimeout but I was getting messages about it being called when there wasn't a window for it to run in. I found https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Timer.jsm and it fixed my problems. Unfortunately, it seems that it ended out replacing window.setTimeout globally and breaking other addons (I have been told about two others so far). I have put some of the DMT code in a package and made it so that it doesn't overwrite things globally. It fixes your original script, but I am confidant that there are some DMT features broken as a result. It will take a while to finish this and get everything working again.
Melchior82 wrote:I just noticed something else that isn't quite working right...
the download info at the top of the DMT window didn't clear after I clicked the "CLEAR DOWNLOADS" button... at that moment I just looked at that window again and its clear.... ????
plus the that titlebar LABEL/CAPTION is stuck at 99% some times some times it disappears like it should...
The info cleared later because it is updated whenever you click on the window. That handles the case of going to another program, deleting the selected file, and then clicking back to DMT. Why it doesn't update after hitting the clear downloads button is something I'll have to look at.
I found the 99% problem yesterday. Before I found out that I was using out-of-date data, I made changes to try and fix the problem. Once I switched to use the correct data, my previous fix attempts ended out causing the problem . I just went back to my original code, but with correct data, and the problem is solved. It will take some days before I finish the process of putting DMT in packages (as mentioned above) and I will watch this 99% problem in the meantime, as I've thought I fixed it before .