mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1926785 ["Remove unused CCS rules" behaviour](https://bugs.launchpad.net/calibre/+bug/1926785)
This commit is contained in:
parent
683e7a4ee1
commit
9a3a8bd271
@ -66,11 +66,12 @@ def customize_remove_unused_css(name, parent, ans):
|
|||||||
d.l.addWidget(d.bb)
|
d.l.addWidget(d.bb)
|
||||||
d.bb.rejected.connect(d.reject)
|
d.bb.rejected.connect(d.reject)
|
||||||
d.bb.accepted.connect(d.accept)
|
d.bb.accepted.connect(d.accept)
|
||||||
if d.exec_() != QDialog.DialogCode.Accepted:
|
ret = d.exec_()
|
||||||
raise Abort()
|
|
||||||
ans['remove_unused_classes'] = tprefs['remove_unused_classes'] = c.isChecked()
|
ans['remove_unused_classes'] = tprefs['remove_unused_classes'] = c.isChecked()
|
||||||
ans['merge_identical_selectors'] = tprefs['merge_identical_selectors'] = m.isChecked()
|
ans['merge_identical_selectors'] = tprefs['merge_identical_selectors'] = m.isChecked()
|
||||||
ans['merge_rules_with_identical_properties'] = tprefs['merge_rules_with_identical_properties'] = p.isChecked()
|
ans['merge_rules_with_identical_properties'] = tprefs['merge_rules_with_identical_properties'] = p.isChecked()
|
||||||
|
if ret != QDialog.DialogCode.Accepted:
|
||||||
|
raise Abort()
|
||||||
|
|
||||||
|
|
||||||
def get_customization(action, name, parent):
|
def get_customization(action, name, parent):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user