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

View File

@ -392,7 +392,7 @@ Below is a list of currently supported actions. Requests with invalid actions or
``` ```
* **guiDeckOverview** * **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*: *Sample request*:
``` ```
@ -411,7 +411,7 @@ Below is a list of currently supported actions. Requests with invalid actions or
* **guiDeckBrowser** * **guiDeckBrowser**
Opens the Deck Browser screen; returns `true` if succeeded or `null` otherwise. Opens the Deck Browser screen.
*Sample request*: *Sample request*:
``` ```
@ -422,7 +422,7 @@ Below is a list of currently supported actions. Requests with invalid actions or
*Sample response*: *Sample response*:
``` ```
true null
``` ```
* **upgrade** * **upgrade**