From 780402d14fdeb9324adaf61a8a79075850e63fdf Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sat, 20 Jun 2026 18:29:54 +0900 Subject: [PATCH] change: ease rate limit --- dzgui/managers/mods.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dzgui/managers/mods.py b/dzgui/managers/mods.py index af27090..4d0170c 100644 --- a/dzgui/managers/mods.py +++ b/dzgui/managers/mods.py @@ -12,10 +12,10 @@ from dzgui.api.mods import ( remove_stale_signatures, ) from dzgui.const.constants import ( + API_RATE_LIMIT, APP_NAME, APPID_DAYZ, APPID_DAYZ_EXP, - RATE_LIMIT_THRESHOLD, ) from dzgui.const.enum import Preferences from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager @@ -109,6 +109,7 @@ class ModManager: def unsub_all_mods(self, mods: list[tuple[str, Gtk.TreeIter]]) -> None: for mod, _iter in mods: self.unsub_atomic_mod(mod) + time.sleep(API_RATE_LIMIT) iters = [_iter for mod, _iter in mods] func = StoredFunc(self._on_mods_unsubbed, iters) @@ -136,7 +137,7 @@ class ModManager: symlink.unlink() except PeFile.AppNotInstalledError: pass - time.sleep(RATE_LIMIT_THRESHOLD) + time.sleep(API_RATE_LIMIT) def _on_mods_unsubbed(self, iters: list[Gtk.TreeIter]) -> None: if self.store is None: