cbxClearFormBeforePopulating not working
This commit is contained in:
parent
f8c0ca195a
commit
085543321a
@ -180,7 +180,7 @@ class CLI:
|
||||
ca = ComicArchive(match_set.original_path)
|
||||
md = self.create_local_metadata(ca)
|
||||
ct_md = self.actual_issue_data_fetch(match_set.online_results[int(i) - 1].issue_id)
|
||||
if self.config.Issue_Identifier__clear_metadata_on_import:
|
||||
if self.config.Issue_Identifier__clear_metadata:
|
||||
md = ct_md
|
||||
else:
|
||||
notes = (
|
||||
@ -552,7 +552,7 @@ class CLI:
|
||||
match_results.fetch_data_failures.append(res)
|
||||
return res
|
||||
|
||||
if self.config.Issue_Identifier__clear_metadata_on_import:
|
||||
if self.config.Issue_Identifier__clear_metadata:
|
||||
md = GenericMetadata()
|
||||
|
||||
notes = (
|
||||
|
@ -58,7 +58,6 @@ def identifier(parser: settngs.Manager) -> None:
|
||||
"--clear-metadata",
|
||||
default=False,
|
||||
help="Clears all existing metadata during import, default is to merge metadata.\nMay be used in conjunction with -o, -f and -m.\n\n",
|
||||
dest="clear_metadata_on_import",
|
||||
action=argparse.BooleanOptionalAction,
|
||||
)
|
||||
parser.add_setting(
|
||||
|
@ -53,7 +53,7 @@ class settngs_namespace(settngs.TypedNS):
|
||||
Issue_Identifier__border_crop_percent: int
|
||||
Issue_Identifier__publisher_filter: list[str]
|
||||
Issue_Identifier__series_match_search_thresh: int
|
||||
Issue_Identifier__clear_metadata_on_import: bool
|
||||
Issue_Identifier__clear_metadata: bool
|
||||
Issue_Identifier__auto_imprint: bool
|
||||
Issue_Identifier__sort_series_by_year: bool
|
||||
Issue_Identifier__exact_series_matches_first: bool
|
||||
|
@ -390,6 +390,7 @@ class SettingsWindow(QtWidgets.QDialog):
|
||||
self.cbxUseFilter.setChecked(self.config[0].Issue_Identifier__always_use_publisher_filter)
|
||||
self.cbxSortByYear.setChecked(self.config[0].Issue_Identifier__sort_series_by_year)
|
||||
self.cbxExactMatches.setChecked(self.config[0].Issue_Identifier__exact_series_matches_first)
|
||||
self.cbxClearFormBeforePopulating.setChecked(self.config[0].Issue_Identifier__clear_metadata)
|
||||
|
||||
self.cbxAssumeLoneCreditIsPrimary.setChecked(self.config[0].Comic_Book_Lover__assume_lone_credit_is_primary)
|
||||
self.cbxCopyCharactersToTags.setChecked(self.config[0].Comic_Book_Lover__copy_characters_to_tags)
|
||||
@ -507,6 +508,7 @@ class SettingsWindow(QtWidgets.QDialog):
|
||||
self.config[0].Issue_Identifier__always_use_publisher_filter = self.cbxUseFilter.isChecked()
|
||||
self.config[0].Issue_Identifier__sort_series_by_year = self.cbxSortByYear.isChecked()
|
||||
self.config[0].Issue_Identifier__exact_series_matches_first = self.cbxExactMatches.isChecked()
|
||||
self.config[0].Issue_Identifier__clear_metadata = self.cbxClearFormBeforePopulating.isChecked()
|
||||
|
||||
self.config[0].Comic_Book_Lover__assume_lone_credit_is_primary = self.cbxAssumeLoneCreditIsPrimary.isChecked()
|
||||
self.config[0].Comic_Book_Lover__copy_characters_to_tags = self.cbxCopyCharactersToTags.isChecked()
|
||||
|
@ -1118,7 +1118,7 @@ class TaggerWindow(QtWidgets.QMainWindow):
|
||||
if self.config[0].Comic_Book_Lover__apply_transform_on_import:
|
||||
new_metadata = CBLTransformer(new_metadata, self.config[0]).apply()
|
||||
|
||||
if self.config[0].Issue_Identifier__clear_metadata_on_import:
|
||||
if self.config[0].Issue_Identifier__clear_metadata:
|
||||
self.clear_form()
|
||||
|
||||
notes = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user