mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix refresh of deck browser, and don't run in profile screen
This commit is contained in:
parent
a02ab141ce
commit
f898a787c9
1 changed files with 3 additions and 2 deletions
|
@ -201,6 +201,7 @@ Are you sure?""")):
|
|||
if not self.pm.profile:
|
||||
# already unloaded
|
||||
return
|
||||
self.state = "profileManager"
|
||||
runHook("unloadProfile")
|
||||
self.unloadCollection()
|
||||
self.onSync(auto=True, reload=False)
|
||||
|
@ -754,8 +755,8 @@ the problem and restart Anki.""")
|
|||
self.progress.timer(10*60*1000, self.onRefreshTimer, True)
|
||||
|
||||
def onRefreshTimer(self):
|
||||
if self.state == "deckbrowser":
|
||||
self.deckbrowser.refresh()
|
||||
if self.state == "deckBrowser":
|
||||
self.deckBrowser.refresh()
|
||||
elif self.state == "overview":
|
||||
self.overview.refresh()
|
||||
|
||||
|
|
Loading…
Reference in a new issue