Multiple bug fixes
This commit is contained in:
7
TODO
7
TODO
@@ -18,16 +18,14 @@ TODO
|
|||||||
✓ Tie file deletion and tab closing to model updates
|
✓ Tie file deletion and tab closing to model updates
|
||||||
✓ Create separate thread for parser - Show progress in main window
|
✓ Create separate thread for parser - Show progress in main window
|
||||||
✓ Memory management
|
✓ Memory management
|
||||||
|
✓ Mass tagging
|
||||||
|
✓ Add capability to sort by new
|
||||||
? Create emblem per filetype
|
? Create emblem per filetype
|
||||||
Table view
|
Table view
|
||||||
Ignore a / the / numbers for sorting purposes
|
Ignore a / the / numbers for sorting purposes
|
||||||
Put the path in the scope of the search
|
|
||||||
maybe as a type: switch
|
|
||||||
Mass tagging
|
|
||||||
Information dialog widget
|
Information dialog widget
|
||||||
Context menu: Cache, Read, Edit database, delete, Mark read/unread
|
Context menu: Cache, Read, Edit database, delete, Mark read/unread
|
||||||
Set focus to newly added file
|
Set focus to newly added file
|
||||||
Add capability to sort by new
|
|
||||||
Reading:
|
Reading:
|
||||||
✓ Drop down for TOC
|
✓ Drop down for TOC
|
||||||
✓ Override the keypress event of the textedit
|
✓ Override the keypress event of the textedit
|
||||||
@@ -46,7 +44,6 @@ TODO
|
|||||||
Record progress
|
Record progress
|
||||||
Pagination
|
Pagination
|
||||||
Set context menu for definitions and the like
|
Set context menu for definitions and the like
|
||||||
Hide progressbar
|
|
||||||
Filetypes:
|
Filetypes:
|
||||||
✓ cbz, cbr support
|
✓ cbz, cbr support
|
||||||
✓ Keep font settings enabled but only for background color
|
✓ Keep font settings enabled but only for background color
|
||||||
|
10
__main__.py
10
__main__.py
@@ -218,7 +218,10 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
|
|
||||||
# Open last... open books.
|
# Open last... open books.
|
||||||
# Then set the value to None for the next run
|
# Then set the value to None for the next run
|
||||||
|
if self.settings['last_open_books']:
|
||||||
self.open_files(self.settings['last_open_books'])
|
self.open_files(self.settings['last_open_books'])
|
||||||
|
else:
|
||||||
|
self.settings['last_open_tab'] = None
|
||||||
|
|
||||||
# Scan the library @ startup
|
# Scan the library @ startup
|
||||||
if self.settings['scan_library']:
|
if self.settings['scan_library']:
|
||||||
@@ -570,6 +573,10 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
if not file_paths:
|
if not file_paths:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def finishing_touches():
|
||||||
|
self.format_contentView()
|
||||||
|
self.start_culling_timer()
|
||||||
|
|
||||||
print('Attempting to open: ' + ', '.join(file_paths))
|
print('Attempting to open: ' + ', '.join(file_paths))
|
||||||
|
|
||||||
contents = sorter.BookSorter(
|
contents = sorter.BookSorter(
|
||||||
@@ -596,10 +603,11 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
if self.settings['last_open_tab'] == this_path:
|
if self.settings['last_open_tab'] == this_path:
|
||||||
self.tabWidget.setCurrentIndex(i)
|
self.tabWidget.setCurrentIndex(i)
|
||||||
self.settings['last_open_tab'] = None
|
self.settings['last_open_tab'] = None
|
||||||
|
finishing_touches()
|
||||||
return
|
return
|
||||||
|
|
||||||
self.tabWidget.setCurrentIndex(self.tabWidget.count() - 1)
|
self.tabWidget.setCurrentIndex(self.tabWidget.count() - 1)
|
||||||
self.format_contentView()
|
finishing_touches()
|
||||||
|
|
||||||
def get_color(self):
|
def get_color(self):
|
||||||
signal_sender = self.sender().objectName()
|
signal_sender = self.sender().objectName()
|
||||||
|
@@ -248,6 +248,8 @@ class Library:
|
|||||||
|
|
||||||
return directory_name, directory_tags
|
return directory_name, directory_tags
|
||||||
|
|
||||||
|
return None, None
|
||||||
|
|
||||||
# Both the models will have to be done separately
|
# Both the models will have to be done separately
|
||||||
# Item Model
|
# Item Model
|
||||||
for i in range(self.view_model.rowCount()):
|
for i in range(self.view_model.rowCount()):
|
||||||
|
@@ -153,6 +153,7 @@ class TableProxyModel(QtCore.QSortFilterProxyModel):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
for i in valid_data:
|
for i in valid_data:
|
||||||
|
if i:
|
||||||
if self.filter_string in i:
|
if self.filter_string in i:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@@ -117,8 +117,7 @@ class BookSorter:
|
|||||||
('DateAdded', 'Position', 'Bookmarks'),
|
('DateAdded', 'Position', 'Bookmarks'),
|
||||||
'books',
|
'books',
|
||||||
{'Hash': file_hash},
|
{'Hash': file_hash},
|
||||||
'EQUALS',
|
'EQUALS')[0]
|
||||||
True)
|
|
||||||
|
|
||||||
book_data = []
|
book_data = []
|
||||||
for i in database_return:
|
for i in database_return:
|
||||||
|
Reference in New Issue
Block a user