mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
add unique window title to selective study
This commit is contained in:
parent
798b35d474
commit
0538430fac
2 changed files with 8 additions and 5 deletions
|
@ -9,7 +9,7 @@ from ankiqt.ui.utils import saveGeom, restoreGeom
|
||||||
|
|
||||||
class ActiveTagsChooser(QDialog):
|
class ActiveTagsChooser(QDialog):
|
||||||
|
|
||||||
def __init__(self, parent, active, inactive):
|
def __init__(self, parent, active, inactive, title):
|
||||||
QDialog.__init__(self, parent, Qt.Window)
|
QDialog.__init__(self, parent, Qt.Window)
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.deck = self.parent.deck
|
self.deck = self.parent.deck
|
||||||
|
@ -17,6 +17,7 @@ class ActiveTagsChooser(QDialog):
|
||||||
self.inactive = inactive
|
self.inactive = inactive
|
||||||
self.dialog = ankiqt.forms.activetags.Ui_Dialog()
|
self.dialog = ankiqt.forms.activetags.Ui_Dialog()
|
||||||
self.dialog.setupUi(self)
|
self.dialog.setupUi(self)
|
||||||
|
self.setWindowTitle(title)
|
||||||
self.connect(self.dialog.buttonBox, SIGNAL("helpRequested()"),
|
self.connect(self.dialog.buttonBox, SIGNAL("helpRequested()"),
|
||||||
self.onHelp)
|
self.onHelp)
|
||||||
self.rebuildTagList()
|
self.rebuildTagList()
|
||||||
|
@ -114,6 +115,6 @@ class ActiveTagsChooser(QDialog):
|
||||||
QDesktopServices.openUrl(QUrl(ankiqt.appWiki +
|
QDesktopServices.openUrl(QUrl(ankiqt.appWiki +
|
||||||
"SelectiveStudy"))
|
"SelectiveStudy"))
|
||||||
|
|
||||||
def show(parent, active, inactive):
|
def show(parent, active, inactive, title):
|
||||||
at = ActiveTagsChooser(parent, active, inactive)
|
at = ActiveTagsChooser(parent, active, inactive, title)
|
||||||
at.exec_()
|
at.exec_()
|
||||||
|
|
|
@ -1535,10 +1535,12 @@ later by using File>Close.
|
||||||
self.mainWin.tabWidget.setCurrentIndex(self.config['studyOptionsScreen'])
|
self.mainWin.tabWidget.setCurrentIndex(self.config['studyOptionsScreen'])
|
||||||
|
|
||||||
def onNewCategoriesClicked(self):
|
def onNewCategoriesClicked(self):
|
||||||
ui.activetags.show(self, "newActive", "newInactive")
|
ui.activetags.show(self, "newActive", "newInactive",
|
||||||
|
_("Limit New Cards"))
|
||||||
|
|
||||||
def onRevCategoriesClicked(self):
|
def onRevCategoriesClicked(self):
|
||||||
ui.activetags.show(self, "revActive", "revInactive")
|
ui.activetags.show(self, "revActive", "revInactive",
|
||||||
|
_("Limit Reviews"))
|
||||||
|
|
||||||
def onFailedMaxChanged(self):
|
def onFailedMaxChanged(self):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue