Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions GUI/widgets/settingsPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import hashlib
import json
import os
import threading
import urllib.error
import urllib.parse
Expand Down Expand Up @@ -1561,7 +1562,7 @@ def _build_sync_page(self) -> QScrollArea:
"Overall concurrent sync work. This controls how many files can be "
"prepared, fingerprinted, transcoded, or copied at once. "
"Auto uses your CPU core count (capped at 8).",
options=["Auto", "1", "2", "4", "6", "8"],
options=["Auto", "1"] + [str(i) for i in range(2, os.cpu_count() + 1, 2)],
current="Auto",
)
self.device_write_workers = ComboRow(
Expand Down Expand Up @@ -2323,7 +2324,7 @@ def load_from_settings(self):
self.video_preset.combo.setCurrentIndex(idx)

# Sync workers → combo text
workers_map = {0: "Auto", 1: "1", 2: "2", 4: "4", 6: "6", 8: "8"}
workers_map = {0: "Auto", 1: "1", **{i: str(i) for i in range(2, os.cpu_count() + 1, 2)}}
sw_text = workers_map.get(s.sync_workers, "Auto")
idx = self.sync_workers.combo.findText(sw_text)
if idx >= 0:
Expand Down