mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
win32 gui bug, win32 file browsing bug
This commit is contained in:
parent
82642a3e9f
commit
0da90a47f7
2 changed files with 9 additions and 2 deletions
|
@ -19,6 +19,7 @@ from anki.utils import addTags, deleteTags, parseTags
|
|||
from anki.media import rebuildMediaDir
|
||||
from anki.db import OperationalError
|
||||
from anki.stdmodels import BasicModel
|
||||
import anki.latex
|
||||
import anki.lang
|
||||
import ankiqt
|
||||
ui = ankiqt.ui
|
||||
|
@ -1360,7 +1361,12 @@ class AnkiQt(QMainWindow):
|
|||
if p.endswith(".py.off") or p.endswith(".py")]
|
||||
|
||||
def onOpenPluginFolder(self):
|
||||
QDesktopServices.openUrl(QUrl("file://" + self.pluginsFolder()))
|
||||
if sys.platform == "win32":
|
||||
# reuse our process handling code from latex
|
||||
anki.latex.call(["explorer", self.pluginsFolder().encode(
|
||||
sys.getfilesystemencoding())])
|
||||
else:
|
||||
QDesktopServices.openUrl(QUrl("file://" + self.pluginsFolder()))
|
||||
|
||||
def onGetPlugins(self):
|
||||
QDesktopServices.openUrl(QUrl("http://ichi2.net/anki/wiki/Plugins"))
|
||||
|
|
|
@ -78,7 +78,8 @@ class StatusView(object):
|
|||
self.addWidget(self.vertSep(), 0)
|
||||
vbox = QVBoxLayout()
|
||||
vbox.setSpacing(0)
|
||||
if sys.platform.startswith("darwin"):
|
||||
if (sys.platform.startswith("darwin") or
|
||||
sys.platform.startswith("win32")):
|
||||
vbox.setContentsMargins(0,0,0,0)
|
||||
self.progressBar = QProgressBar()
|
||||
self.progressBar.setFixedSize(*progressBarSize)
|
||||
|
|
Loading…
Reference in a new issue