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