From 53ab6a688e70841722a110682dfe56c7ce3fc6e4 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 22 Aug 2024 18:50:30 -0700 Subject: [PATCH] fix: only count valid backends - use valid_backends variable instead of backend_combo length, as the "No backends found" message is incorrectly counted as a single backend --- src/AutoGGUF.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoGGUF.py b/src/AutoGGUF.py index b39ca92..e77a286 100644 --- a/src/AutoGGUF.py +++ b/src/AutoGGUF.py @@ -869,7 +869,7 @@ def refresh_backends(self): else: self.backend_combo.addItem(NO_BACKENDS_AVAILABLE) self.backend_combo.setEnabled(False) - self.logger.info(FOUND_VALID_BACKENDS.format(self.backend_combo.count())) + self.logger.info(FOUND_VALID_BACKENDS.format(len(valid_backends))) def save_task_preset(self, task_item): self.logger.info(SAVING_TASK_PRESET.format(task_item.task_name))