Merge branch 'master' of github.com:dae/anki
This commit is contained in:
commit
161f8bcb31
@ -50,11 +50,10 @@ class DeckStats(QDialog):
|
|||||||
name = time.strftime("-%Y-%m-%d@%H-%M-%S.png",
|
name = time.strftime("-%Y-%m-%d@%H-%M-%S.png",
|
||||||
time.localtime(time.time()))
|
time.localtime(time.time()))
|
||||||
name = "anki-"+_("stats")+name
|
name = "anki-"+_("stats")+name
|
||||||
path = os.path.join(
|
desktopPath = QDesktopServices.storageLocation(QDesktopServices.DesktopLocation)
|
||||||
QDesktopServices.storageLocation(QDesktopServices.DesktopLocation),
|
if not os.path.exists(desktopPath):
|
||||||
name)
|
os.mkdir(desktopPath)
|
||||||
if not os.path.exists(path):
|
path = os.path.join(desktopPath, name)
|
||||||
os.mkdir(path)
|
|
||||||
p = self.form.web.page()
|
p = self.form.web.page()
|
||||||
oldsize = p.viewportSize()
|
oldsize = p.viewportSize()
|
||||||
p.setViewportSize(p.mainFrame().contentsSize())
|
p.setViewportSize(p.mainFrame().contentsSize())
|
||||||
|
Loading…
Reference in New Issue
Block a user