Multiple fixes
This commit is contained in:
1
TODO
1
TODO
@@ -104,3 +104,4 @@ TODO
|
||||
Ignore a / the / numbers for sorting purposes
|
||||
? Add only one file type if multiple are present
|
||||
? Create emblem per filetype
|
||||
In application notifications
|
||||
|
@@ -670,6 +670,12 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
|
||||
True,
|
||||
self.temp_dir.path()).initiate_threads()
|
||||
|
||||
# TODO
|
||||
# Notification feedback in case all books return nothing
|
||||
|
||||
if not contents:
|
||||
return
|
||||
|
||||
for i in contents:
|
||||
# New tabs are created here
|
||||
# Initial position adjustment is carried out by the tab itself
|
||||
|
@@ -49,12 +49,12 @@ class LibraryDelegate(QtWidgets.QStyledItemDelegate):
|
||||
if not file_exists:
|
||||
painter.setOpacity(.7)
|
||||
QtWidgets.QStyledItemDelegate.paint(self, painter, option, index)
|
||||
painter.setOpacity(1)
|
||||
read_icon = pie_chart.pixmapper(
|
||||
-1, None, self.parent.settings['consider_read_at'], 36)
|
||||
x_draw = option.rect.bottomRight().x() - 30
|
||||
y_draw = option.rect.bottomRight().y() - 35
|
||||
painter.drawPixmap(x_draw, y_draw, read_icon)
|
||||
painter.setOpacity(1)
|
||||
return
|
||||
|
||||
QtWidgets.QStyledItemDelegate.paint(self, painter, option, index)
|
||||
|
@@ -33,13 +33,14 @@
|
||||
|
||||
import io
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import pickle
|
||||
import hashlib
|
||||
import threading
|
||||
|
||||
# The multiprocessing module does not work correctly on Windows
|
||||
if os.uname().sysname == 'Windows':
|
||||
if sys.platform.startswith('win'):
|
||||
from multiprocessing.dummy import Pool, Manager
|
||||
else:
|
||||
from multiprocessing import Pool, Manager
|
||||
|
Reference in New Issue
Block a user