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
This commit is contained in:
BuildTools 2024-08-22 18:50:30 -07:00
parent e8026892e9
commit 53ab6a688e
No known key found for this signature in database
GPG Key ID: 3270C066C15D530B
1 changed files with 1 additions and 1 deletions

View File

@ -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))