anki-addons icon indicating copy to clipboard operation
anki-addons copied to clipboard

Doesn't work with "Multiple 'Add' and 'Browser' Windows" add-on

Open dochypermoose opened this issue 8 years ago • 6 comments

Is there some way to get your add-on to work with the "Multiple 'Add' and 'Browser' Windows" ... that other one seems to prevent yours from actually switching note types (doesn't affect decks though). I don't know enough (read: anything at all) about code to find/fix the issue.

Multiple 'Add' and 'Browser' Windows https://ankiweb.net/shared/info/969743069

dochypermoose avatar Feb 15 '17 17:02 dochypermoose

  • Which add-on? There’s more than one here.
  • Probably not. When both add-ons modify the same bit of the original Anki code, it can happen that one undoes the effect of the other. Maybe there is a way to make both work at the same time, but if, as you say, they don’t , then it may be more work then i am willing to invest here.

ospalh avatar Feb 15 '17 19:02 ospalh

Ah sorry. It's your "Quick note and deck buttons" add-on.

dochypermoose avatar Feb 15 '17 19:02 dochypermoose

Well, thanks for that bit of information. Then again, i’m a bit sorry, but i’ve mostly lost interest in all these add-ons. They work well enough for me, and when people want something more, e.g. one specific add-on to work together with some other random add-on by somebody else, well, i may look into it when i have nothing else to do, which may take a long time. Sorry, but you may be better of fixing this yourself. Or using the standard deck/model selector.

ospalh avatar Feb 15 '17 19:02 ospalh

Ah ok thanks!

dochypermoose avatar Feb 15 '17 19:02 dochypermoose

I'm a bit late to the party, but you can fix the incompatibility by editing the source code of the multiple windows add-on and removing everything below the following line:

# The following code prevents a change of note type in one AddCards dialog from affecting others.?

glutanimate avatar Apr 04 '17 00:04 glutanimate

I made the change that you had suggested; while this change allows the "quick button add on to work" it makes the changes in all of the "multiple add windows"

Do you think it is possible to have a change in note type in add window # 1 not to affect the note type in add window # 2?

Or do the hooks for global note type changes make it difficult for this to be possible?

RonilPatel7 avatar Apr 13 '17 05:04 RonilPatel7