Multiple fixes

This commit is contained in:
BasioMeusPuga
2018-04-29 08:11:46 -04:00
parent 626472dd04
commit 7977bde410
4 changed files with 10 additions and 2 deletions

1
TODO
View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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