Skip to content

Commit

Permalink
refactor: little refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodCoder666 committed Dec 12, 2024
1 parent b55d8b6 commit ba3ef3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlgScan.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, parent, ip_ranges):
def _update_range_count(self):
edit_translation = self.tr('编辑...')
num_ranges = len(self.ip_ranges)
num_enabled_ranges = sum(1 for enabled, _, _ in self.ip_ranges if enabled)
num_enabled_ranges = sum(enabled for enabled, _, _ in self.ip_ranges)
self.ui.btnEditRanges.setText(f'{edit_translation} ({num_enabled_ranges}/{num_ranges})')

@Slot()
Expand Down

0 comments on commit ba3ef3c

Please sign in to comment.