mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
make desktop folder if missing (#851)
This commit is contained in:
parent
7ad33fea06
commit
7ca86e2dd7
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ class DeckStats(QDialog):
|
||||||
path = os.path.join(
|
path = os.path.join(
|
||||||
QDesktopServices.storageLocation(QDesktopServices.DesktopLocation),
|
QDesktopServices.storageLocation(QDesktopServices.DesktopLocation),
|
||||||
name)
|
name)
|
||||||
|
if not os.path.exists(path):
|
||||||
|
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 a new issue