Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporarily disable sorting method #2

Open
wants to merge 1 commit into
base: refreshBrowser
Choose a base branch
from

Conversation

working-name
Copy link

Remove sorting method that's failing, but still refresh the browser as is.

I tried to figure out how to do that but I don't python and even a simple print() is a pain. I also can't find documentation online on how to do this.

Browser.form.tableView.selectRow(0) still works and it refreshes the browser which is all I wanted from the add-on anyway.

Thanks!

The problem line.

Anki 24.04 (bfaa28fe)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):
  File "C:\Users\me\AppData\Roaming\Anki2\addons21\1347728560\browser_refresh.py", line 50, in refreshView
    col_index = self.model.activeCols.index(SORTING_COLUMN)
AttributeError: 'MockModel' object has no attribute 'activeCols'

Remove sorting method that's failing, but still refresh the browser as is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant