Skip to content

Commit

Permalink
fix always active of shared operation
Browse files Browse the repository at this point in the history
  • Loading branch information
un-pogaz committed Apr 12, 2023
1 parent 579a934 commit c504621
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ActionMassSearchReplace(InterfaceActionBase):
description = _('Easily apply a list of multiple saved Find and Replace operations to your books metadata')
supported_platforms = ['windows', 'osx', 'linux']
author = 'un_pogaz'
version = (1, 7, 1)
version = (1, 7, 2)
minimum_calibre_version = (4, 0, 0)

#: This field defines the GUI plugin class that contains all the code
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### version 1.7.2
fix active statue of Shared Search/Replace operation not conserved (always active)

### version 1.7.1
fix broken compatibility with 6.12 (use a icon instead of a red border to warn about a regex error)

Expand Down
6 changes: 5 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,11 @@ def populate_table(self, operation_list=None):

self.setRowCount(len(operation_list))
for row, operation in enumerate(operation_list):
self.populate_table_row(row, calibre_queries.get(unicode_type(operation.get(KEY_OPERATION.NAME, None)), operation))
is_active = operation[KEY_OPERATION.ACTIVE]
operation = calibre_queries.get(unicode_type(operation.get(KEY_OPERATION.NAME, None)), operation)
operation[KEY_OPERATION.ACTIVE] = is_active

self.populate_table_row(row, operation)

self.test_column_hidden()

Expand Down

0 comments on commit c504621

Please sign in to comment.