diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index c20eee9..d88fa08 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -224,7 +224,7 @@ class TaggerWindow(QtWidgets.QMainWindow): if style not in metadata_styles: config[0].internal__load_data_style.remove(style) self.save_data_styles: list[str] = config[0].internal__save_data_style - self.load_data_styles: list[str] = list(reversed(config[0].internal__load_data_style)) + self.load_data_styles: list[str] = config[0].internal__load_data_style self.setAcceptDrops(True) self.view_tag_actions, self.remove_tag_actions = self.tag_actions() @@ -1224,7 +1224,8 @@ class TaggerWindow(QtWidgets.QMainWindow): "Change Tag Read Style", "If you change read tag style(s) now, data in the form will be lost. Are you sure?", ): - self.load_data_styles = list(reversed(load_data_styles)) + self.load_data_styles = load_data_styles + self.config[0].internal__load_data_style = load_data_styles self.update_menus() if self.comic_archive is not None: self.load_archive(self.comic_archive) @@ -2097,7 +2098,6 @@ class TaggerWindow(QtWidgets.QMainWindow): self.config[0].internal__sort_column, self.config[0].internal__sort_direction, ) = self.fileSelectionList.get_sorting() - self.config[0].internal__load_data_style = self.cbLoadDataStyle.currentData() ctsettings.save_file(self.config, self.config[0].Runtime_Options__config.user_config_dir / "settings.json") event.accept() diff --git a/comictaggerlib/ui/customwidgets.py b/comictaggerlib/ui/customwidgets.py index 681b96b..0788a46 100644 --- a/comictaggerlib/ui/customwidgets.py +++ b/comictaggerlib/ui/customwidgets.py @@ -315,7 +315,8 @@ class CheckableOrderComboBox(QtWidgets.QComboBox): if event.type() == QEvent.Hide: self._updateText() self.justShown = False - self.dropdownClosed.emit(self.currentData()) + # Reverse as the display order is in "priority" order for the user whereas overlay requires reversed + self.dropdownClosed.emit(list(reversed(self.currentData()))) # QEvent.MouseButtonPress is inconsistent on activation because double clicks are a thing if event.type() == QEvent.MouseButtonRelease: # If self.justShown is true it means that they clicked on the combobox to change the checked items