Coder Social home page Coder Social logo

Changes for TB68 about bordercolors-d HOT 8 CLOSED

dreadnaut avatar dreadnaut commented on June 26, 2024
Changes for TB68

from bordercolors-d.

Comments (8)

dreadnaut avatar dreadnaut commented on June 26, 2024

Thank you very much Dave, I had no idea of the add-on changes coming up!
I have downloaded the files, I'll prepare a branch for a future version 2.

from bordercolors-d.

revad avatar revad commented on June 26, 2024

My version (plus the style changes from #1) works in 67b but not the latest 68a: prefs don't save. This may be a temporary regression or there may be more pref changes on the way in 68.

Buttons in the option dialog have no effect. setInt, setColor, not called. (Also affects another addon with a help button.)

from bordercolors-d.

revad avatar revad commented on June 26, 2024

I raised a bug. It this is indeed a regression it would be better fixed while 68 is still alpha.
https://bugzilla.mozilla.org/show_bug.cgi?id=1542752

If it isn't fixed we can lose the OK, cancel buttons and save the prefs like 'Use BCC Instead C' does

from bordercolors-d.

revad avatar revad commented on June 26, 2024

It was deliberate - mirroring a change in Firefox.

Geoff Lankow has added that change, and solution to here:
https://thunderbird-webextensions.readthedocs.io/en/latest/how-to/extensions68.html#dialog-events

from bordercolors-d.

revad avatar revad commented on June 26, 2024

I fixed that by removing the ondialogaccept line and adding into the onLoad function:
document.addEventListener("dialogaccept", function(event) { onAccept(); });

from bordercolors-d.

dreadnaut avatar dreadnaut commented on June 26, 2024

Working on this at the moment, I'll upload a TB68-compatible version later today. Thanks for all the pointers :)

from bordercolors-d.

revad avatar revad commented on June 26, 2024

FWIW my modified version still works in 68, but the preferences don't work in 69 (colour picker vanished) or 70 (colour picker reappeared but without the account identifers). I didn't investigate why.

from bordercolors-d.

dreadnaut avatar dreadnaut commented on June 26, 2024

Ah, it's going to be a bumpy ride for Thunderbird addons 🤔

I've uploaded release 1.2.0 here on GitHub, and I'll submit it to the Add-on website in a moment.

Closing this for now, thanks for the help!

from bordercolors-d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.