Skip to content

Commit

Permalink
fix: only count valid backends
Browse files Browse the repository at this point in the history
- use valid_backends variable instead of backend_combo length, as the "No backends found" message is incorrectly counted as a single backend
  • Loading branch information
leafspark committed Aug 23, 2024
1 parent e802689 commit 53ab6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AutoGGUF.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 53ab6a6

Please sign in to comment.