diff --git a/fastflix/command_runner.py b/fastflix/command_runner.py index 7a7273f5..8443b5f2 100644 --- a/fastflix/command_runner.py +++ b/fastflix/command_runner.py @@ -9,6 +9,7 @@ from subprocess import PIPE from threading import Thread from typing import Literal +import sys from psutil import Popen @@ -23,12 +24,12 @@ ) except ImportError: priority_levels = { - "Realtime": 20, - "High": 10, - "Above Normal": 5, + "Realtime": -20, + "High": -10, + "Above Normal": -5, "Normal": 0, - "Below Normal": -10, - "Idle": -20, + "Below Normal": 10, + "Idle": 19 if sys.platform == "linux" else 20, } else: priority_levels = { diff --git a/fastflix/widgets/panels/queue_panel.py b/fastflix/widgets/panels/queue_panel.py index 9a4676b1..1212f718 100644 --- a/fastflix/widgets/panels/queue_panel.py +++ b/fastflix/widgets/panels/queue_panel.py @@ -230,8 +230,11 @@ def __init__(self, parent, app: FastFlixApp): self.load_queue_button.setFixedWidth(110) self.priority_widget = QtWidgets.QComboBox() - self.priority_widget.addItems(["Realtime", "High", "Above Normal", "Normal", "Below Normal", "Idle"]) - self.priority_widget.setCurrentIndex(3) + self.priority_widget.addItems( + ([] if reusables.win_based else ["Realtime"]) + + ["High", "Above Normal", "Normal", "Below Normal", "Idle"] + ) + self.priority_widget.setCurrentText("Normal") self.priority_widget.currentIndexChanged.connect(self.set_priority) self.clear_queue = QtWidgets.QPushButton(