From 13f421809eb7841fd76b98a0fd90f83160033fd6 Mon Sep 17 00:00:00 2001 From: JacobDev1 <65915437+JacobDev1@users.noreply.github.com> Date: Sun, 16 Nov 2025 21:05:53 +0100 Subject: [PATCH 1/3] Fix niceness values --- fastflix/command_runner.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 = { From 3c0e8551ed7077365e1068476b6dfd0b272c78cc Mon Sep 17 00:00:00 2001 From: JacobDev1 <65915437+JacobDev1@users.noreply.github.com> Date: Sun, 16 Nov 2025 21:38:09 +0100 Subject: [PATCH 2/3] Remove Realtime priority from the UI on win_based --- fastflix/widgets/panels/queue_panel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fastflix/widgets/panels/queue_panel.py b/fastflix/widgets/panels/queue_panel.py index 9a4676b1..ebf2bdc8 100644 --- a/fastflix/widgets/panels/queue_panel.py +++ b/fastflix/widgets/panels/queue_panel.py @@ -230,7 +230,10 @@ 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.addItems( + ([] if reusables.win_based else ["Realtime"]) + + ["High", "Above Normal", "Normal", "Below Normal", "Idle"] + ) self.priority_widget.setCurrentIndex(3) self.priority_widget.currentIndexChanged.connect(self.set_priority) From 3120281393b8125da8c8e34878b9a0619dc3387f Mon Sep 17 00:00:00 2001 From: JacobDev1 <65915437+JacobDev1@users.noreply.github.com> Date: Sun, 16 Nov 2025 22:55:50 +0100 Subject: [PATCH 3/3] Use text instead of index for process_widget --- fastflix/widgets/panels/queue_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastflix/widgets/panels/queue_panel.py b/fastflix/widgets/panels/queue_panel.py index ebf2bdc8..1212f718 100644 --- a/fastflix/widgets/panels/queue_panel.py +++ b/fastflix/widgets/panels/queue_panel.py @@ -234,7 +234,7 @@ def __init__(self, parent, app: FastFlixApp): ([] if reusables.win_based else ["Realtime"]) + ["High", "Above Normal", "Normal", "Below Normal", "Idle"] ) - self.priority_widget.setCurrentIndex(3) + self.priority_widget.setCurrentText("Normal") self.priority_widget.currentIndexChanged.connect(self.set_priority) self.clear_queue = QtWidgets.QPushButton(