From 4c34b8ab7bbf36feacdace7a4b0aae9a62cca1b7 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Wed, 2 Sep 2026 14:42:25 +0200 Subject: [PATCH] Add smart visual update checks to Discord test branch --- setup_tool.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/setup_tool.py b/setup_tool.py index 420fc37..7d58e64 100644 --- a/setup_tool.py +++ b/setup_tool.py @@ -1725,13 +1725,19 @@ class WowSetupTool: # is enough to trigger one fresh download when a source/version changes. for key, managed_id, display_name, installer in visual_defs: if self.visual_mods[key].get(): - revision = remote_packages.VISUAL_MOD_REVISIONS[managed_id] - if remote_packages.managed_mpq_is_current( - target, - managed_id, - revision, - ): - continue + # Hosted static mirrors use explicit revisions and can be + # skipped without any network request. Pink Herbs follows a + # GitHub branch, so its installer performs a lightweight + # branch-SHA check before deciding whether a download is + # needed. + if key != "pink_herbs": + revision = remote_packages.VISUAL_MOD_REVISIONS[managed_id] + if remote_packages.managed_mpq_is_current( + target, + managed_id, + revision, + ): + continue try: installer(target, progress=progress)