From 4b2a4a49e8c87ef9936e2a518dfb9a256b16de1f Mon Sep 17 00:00:00 2001 From: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com> Date: Fri, 24 Feb 2023 23:26:27 +0900 Subject: [PATCH] Fix: doesn't sort caption when save from dialog --- scripts/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/main.py b/scripts/main.py index 2015897..14c4f88 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -404,7 +404,7 @@ def gallery_index_changed(prev_idx: int, next_idx: int, edit_caption: str, copy_ def dialog_selected_save_caption_change(prev_idx: int, edit_caption: str, sort: bool = False): prev_idx = int(prev_idx) - return change_selected_image_caption(edit_caption, prev_idx) + return change_selected_image_caption(edit_caption, prev_idx, sort) def change_selected_image_caption(tags_text: str, idx: int, sort: bool = False):