Bump version to 0.9.6; update localization files and adjust status update logic in Core
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good

This commit is contained in:
2025-06-26 18:22:07 +02:00
parent 49d000003a
commit 7aa9d5cbdf
4 changed files with 36 additions and 35 deletions

View File

@@ -35,7 +35,7 @@ class Core:
"""
def __init__(self, settings: Settings, gui_mode: bool = True):
self.version = "0.9.5"
self.version = "0.9.6"
self.acknowledged_version = parse_version(self.version)
self.settings = settings
self.tags_repo = TagsRepo(settings)
@@ -552,7 +552,8 @@ class Core:
post_id = post_url.split("/")[-1]
self.uploaded[file_path] = post_id
self.uploaded_count += 1
self.after(0, self.update_status_bar)
if self.update_status_bar_callback:
self.update_status_bar_callback()
except Exception as e:
if error_callback:
error_callback(str(e))
@@ -592,8 +593,8 @@ class Core:
if not self.uploaded.get(file_path, False):
final_tags, final_rating = self.compute_final_tags_and_rating_for_file(
file_path,
update_status_callback, # lambda: self.after(0, self.update_status_bar)
manual_tags, # set(self.manual_tags_manager.manual_tags)
update_status_callback,
manual_tags,
)
print(
_(