mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -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):
|
||||
|
||||
def __init__(self, parent, active, inactive):
|
||||
def __init__(self, parent, active, inactive, title):
|
||||
QDialog.__init__(self, parent, Qt.Window)
|
||||
self.parent = parent
|
||||
self.deck = self.parent.deck
|
||||
|
@ -17,6 +17,7 @@ class ActiveTagsChooser(QDialog):
|
|||
self.inactive = inactive
|
||||
self.dialog = ankiqt.forms.activetags.Ui_Dialog()
|
||||
self.dialog.setupUi(self)
|
||||
self.setWindowTitle(title)
|
||||
self.connect(self.dialog.buttonBox, SIGNAL("helpRequested()"),
|
||||
self.onHelp)
|
||||
self.rebuildTagList()
|
||||
|
@ -114,6 +115,6 @@ class ActiveTagsChooser(QDialog):
|
|||
QDesktopServices.openUrl(QUrl(ankiqt.appWiki +
|
||||
"SelectiveStudy"))
|
||||
|
||||
def show(parent, active, inactive):
|
||||
at = ActiveTagsChooser(parent, active, inactive)
|
||||
def show(parent, active, inactive, title):
|
||||
at = ActiveTagsChooser(parent, active, inactive, title)
|
||||
at.exec_()
|
||||
|
|
|
@ -1535,10 +1535,12 @@ later by using File>Close.
|
|||
self.mainWin.tabWidget.setCurrentIndex(self.config['studyOptionsScreen'])
|
||||
|
||||
def onNewCategoriesClicked(self):
|
||||
ui.activetags.show(self, "newActive", "newInactive")
|
||||
ui.activetags.show(self, "newActive", "newInactive",
|
||||
_("Limit New Cards"))
|
||||
|
||||
def onRevCategoriesClicked(self):
|
||||
ui.activetags.show(self, "revActive", "revInactive")
|
||||
ui.activetags.show(self, "revActive", "revInactive",
|
||||
_("Limit Reviews"))
|
||||
|
||||
def onFailedMaxChanged(self):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue