mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Another use of checkState() that needs to be changed
This commit is contained in:
parent
63adfd3a2c
commit
3f4c4b318a
@ -47,7 +47,7 @@ class PluginWidget(Widget, Ui_Form):
|
||||
def get_value_handler(self, g):
|
||||
if g is not self.opt_markdown_extensions:
|
||||
return Widget.get_value_handler(self, g)
|
||||
return ', '.join(str(i.data(Qt.ItemDataRole.UserRole) or '') for i in itervalues(self.md_map) if i.checkState())
|
||||
return ', '.join(str(i.data(Qt.ItemDataRole.UserRole) or '') for i in self.md_map.values() if i.checkState() == Qt.CheckState.Checked)
|
||||
|
||||
def connect_gui_obj_handler(self, g, f):
|
||||
if g is not self.opt_markdown_extensions:
|
||||
|
Loading…
x
Reference in New Issue
Block a user