Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 6 additions & 5 deletions fastflix/command_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from subprocess import PIPE
from threading import Thread
from typing import Literal
import sys

from psutil import Popen

Expand All @@ -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 = {
Expand Down
7 changes: 5 additions & 2 deletions fastflix/widgets/panels/queue_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading