Skip to content

Commit

Permalink
lowering thread priority, longer update interval for spin icons
Browse files Browse the repository at this point in the history
  • Loading branch information
jitender.singh committed Jul 12, 2021
1 parent 7731700 commit 14014b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/customwidgets/pushbutton.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def apply_current_palette(self, animate=False):
self.objectName(),
color=text_color,
color_active=highlight_color,
animation=qta.Spin(self)
animation=qta.Spin(self, interval=100, step=2)
)
else:
qicon = qta.icon(
Expand Down
3 changes: 2 additions & 1 deletion ui/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import qtawesome as qta

from PySide2 import QtCore
from PySide2.QtCore import QThread
from PySide2.QtGui import QIcon
from PySide2.QtWidgets import QTableWidget, QTableWidgetItem, QHeaderView, QFileDialog, QCheckBox

Expand Down Expand Up @@ -355,7 +356,7 @@ def on_click_download_video(self, rf_id: int, is_flipped=False):
'pushbuttons': pushbuttons,
'thread': thread,
}
thread.start()
thread.start(priority=QThread.Priority.IdlePriority)
self.data[rf_id]['offline_filepath'] = video_filepath

def thread_finished(self, pushbuttons): # noqa
Expand Down

0 comments on commit 14014b0

Please sign in to comment.