Fixing some issues. Changing the guiDeckBrowser return to nothing.

This commit is contained in:
tomasgodoi 2017-07-02 17:38:08 -03:00
parent ffd64ffca0
commit 013050cb9a
2 changed files with 4 additions and 5 deletions

View File

@ -511,7 +511,7 @@ class AnkiBridge:
collection = self.collection()
if collection is not None:
deck = collection.decks.byName(name)
if (deck is not None):
if deck is not None:
collection.decks.select(deck['id'])
self.window().onOverview()
return True
@ -519,7 +519,6 @@ class AnkiBridge:
def guiDeckBrowser(self):
self.window().moveToState("deckBrowser")
return True
#
# AnkiConnect

View File

@ -392,7 +392,7 @@ Below is a list of currently supported actions. Requests with invalid actions or
```
* **guiDeckOverview**
Opens the Deck Overview screen for the deck with the given name; returns `true` if succeeded or `False` otherwise.
Opens the Deck Overview screen for the deck with the given name; returns `true` if succeeded or `false` otherwise.
*Sample request*:
```
@ -411,7 +411,7 @@ Below is a list of currently supported actions. Requests with invalid actions or
* **guiDeckBrowser**
Opens the Deck Browser screen; returns `true` if succeeded or `null` otherwise.
Opens the Deck Browser screen.
*Sample request*:
```
@ -422,7 +422,7 @@ Below is a list of currently supported actions. Requests with invalid actions or
*Sample response*:
```
true
null
```
* **upgrade**