Skip to content

Commit 53ab6a6

Browse files
committed
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
1 parent e802689 commit 53ab6a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AutoGGUF.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def refresh_backends(self):
869869
else:
870870
self.backend_combo.addItem(NO_BACKENDS_AVAILABLE)
871871
self.backend_combo.setEnabled(False)
872-
self.logger.info(FOUND_VALID_BACKENDS.format(self.backend_combo.count()))
872+
self.logger.info(FOUND_VALID_BACKENDS.format(len(valid_backends)))
873873

874874
def save_task_preset(self, task_item):
875875
self.logger.info(SAVING_TASK_PRESET.format(task_item.task_name))

0 commit comments

Comments
 (0)