Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing undo action if Load Balancer is turned on / off (works only after rebuilding the queues) #3918

@GithubAnon0000

Description

@GithubAnon0000

Source: #3860 (comment)

Issue

If the load balancer is toggled to True or False via the debug console, no undo action is available via Ctrl+z or edit → undo. @YukiNagat0 pointed out, that it does appear after the queues are rebuild, e.g. by clicking on any deck on the main screen. Only after this step is the undo action available.

Expected Behavior

The undo action should be available without having to click on a deck.

Steps to reproduce

  1. Create a new profile.
  2. Open the console.
  3. Type pp(mw.col.load_balancer_enabled) and observe that it's set to True.
  4. Turn LB off by typing mw.col.load_balancer_enabled = False.
  5. Type pp(mw.col.load_balancer_enabled) again and see that it now is set to False.
  6. Close the debug window.
  7. Try to Ctrl+z or edit → undo and observe that it fails (undo action is empty).
  8. Click on a deck in the main screen.
  9. Now try to Ctrl+z or edit → undo and observe that it now does indeed work.

Version

Latest version built today:

Anki 25.02 (8fc822a6) (src) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Linux-6.12.19-amd64-x86_64-with-glibc2.41

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnkiWebView Inspector ['31746032', 2023-06-27T21:26, 'None', '']

===IDs of active AnkiWeb add-ons===
31746032

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Image Occlusion Enhanced ['1374772155', 2022-04-09T09:15, 'None', '']
Review Heatmap ['1771074083', 2022-06-30T03:43, 'None', '']
Study Time Stats ['1247171202', 2024-02-24T17:59, 'None', '']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions