mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
fix save image link on win32
This commit is contained in:
parent
ef5caf5038
commit
4d945592dd
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
from aqt.qt import *
|
||||
import os
|
||||
from aqt.webview import AnkiWebView
|
||||
from aqt.utils import saveGeom, restoreGeom, maybeHideClose
|
||||
from aqt.utils import saveGeom, restoreGeom, maybeHideClose, openFolder
|
||||
from anki.utils import namedtmp
|
||||
from anki.hooks import addHook
|
||||
import aqt
|
||||
|
@ -109,7 +109,7 @@ class DeckStats(QDialog):
|
|||
painter.end()
|
||||
image.save(path, "png")
|
||||
p.setViewportSize(oldsize)
|
||||
QDesktopServices.openUrl(QUrl("file://" + path))
|
||||
openFolder(path)
|
||||
|
||||
def changePeriod(self, n):
|
||||
self.period = n
|
||||
|
|
Loading…
Reference in a new issue