mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
force inMainWindow() to on, make sure win is visible
This commit is contained in:
parent
195944b395
commit
aada2e4864
1 changed files with 5 additions and 0 deletions
|
@ -909,6 +909,11 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def inMainWindow(self):
|
def inMainWindow(self):
|
||||||
|
if not self.app.activeWindow():
|
||||||
|
# make sure window is shown
|
||||||
|
self.setWindowState(self.windowState() & ~Qt.WindowMinimized)
|
||||||
|
return True
|
||||||
|
# FIXME: no longer necessary?
|
||||||
return self.app.activeWindow() == self
|
return self.app.activeWindow() == self
|
||||||
|
|
||||||
def onNew(self, initial=False, path=None):
|
def onNew(self, initial=False, path=None):
|
||||||
|
|
Loading…
Reference in a new issue