Deck change from STAT window also changes MAIN (Study) window

PLATFORM: ANKI Desktop for Windows
VERSION: ⁨25.02.4 (a5c33ad0)⁩
PYTHON: 3.9.18 Qt 6.6.2 PyQt 6.6.1

TESTING ENVIRONMENT: With and Without Add-ons (SHIFT while ANKI starts)
TESTING BEHAVIOR: Consistent for both

ISSUE: Changing Decks from the STAT window causes the MAIN window(Study) to change to the
deck selected by the STAT window

SETUP: Main_Deck - regular deck and collection of ANKI Notes
Deck_Filtered - a filtered deck of selected notes from Main_Deck

TEST DETAILS:

  1. Select Deck_Filtered from the list under the DECKS Tab
  2. Select Rebuild
  3. Open the STATS window by selecting STAS tab from the MAIN window
  4. Using the DECK dropdown on the STAT window, select Main_Deck as a new deck
  5. Expecting: stats for Main_Deck displayed, no change on MAIN window

RESULTS:
6) stats show for Main_Deck in STATS window (OK)
7) MAIN window goes gray (Unexpected)
8) Go to MAIN window and select it (OK)
9) MAIN window changes to Main_Deck (Unexpected)
NOTE: If I was doing a card in the Filtered Deck, the display changes
from the Filtered_Deck card to a card in the Main_Deck.

COMMENTS:
I’ve been using this process for several years.
If it was always doing this, I must have never noticed.
What I recall it doing is that the Select Deck function on the STATS window never affected the MAIN window. I don’t recall the MAIN window going gray.

WHY I DO THIS: (optional)
If for some reason I have a lot of cards backlogged. I work through these one day at a time. I use the STATS Cards Due graph of the Main_Deck to show me what I have left and what Day they are associated with. I filter out 30 cards at a time from my Main_Deck (Using the Limit_To option and filter by Prop:Due=.

I work through 30 cards at a time (with “Reschedule cards based on my answers in this deck” enabled) in the Filtered deck. To get the current Stats for the Main_Deck with the Stats window still showing the Main_Deck stats, I have to select a different window from the Stats DECK dropdown and then re-select the Main_Deck (NOTE: It would be convenient to have a REFRESH function on the STATS page.) This effectively "refreshed the data displayed in the STATS window.

I then go back to my Filtered deck, still showing on the MAIN window, make any necessary changes to the deck (change day etc.) and do another 30. I don’t ever recall, until recently, that the deck changed to the MAIN deck. I recall just staying in the Filtered deck on the Main window.
I think if this is annoying me now, it would have annoyed me sometime before.
(But I COULD be wrong).

Yes, I know there are other ways of effectively working on smaller batches, but this has worked for me so far,

REQUEST:

  1. If it has always worked this way, and for some reason I never noticed, just tell me and close this ticket.
  2. If not, tell me as well. You can then put it on your list.
    NOTE: I’m not asking for anyone to fix it right now. I just want to know if it is broken or not so I
    can work around it.

Thanks.

What you’re actually doing in that dropdown in the Stats window is changing the “current” deck. That’s why the default search at the top of the window – for deck:current – still works.

When that deck selector was added to the Stats window in 2023 (version 2.1.61), it was added for the express purpose of changing the “current” deck, so I expect it has always had this same behavior.

It looks like that only happens because the window knows it needs to be refreshed/redrawn. It “goes gray” until you select it again, rather than refreshing instantly. If that has changed, I suspect it’s due to QTWebEngine version changes in the past few years.


Workarounds:

I know you said you don’t want to change your workflow, but I think any of these things might make this process work better for you.

A. Open the Stats window for the main deck first. If you do step 3 first, changes to the selected deck in the main window don’t change what’s displayed in Stats.

B. Use the Browse window instead of the Stats window to see how many cards are due each day.

C. Paste a different search at the top of the Stats window, like deck:Main_Deck.