mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-18 16:33:45 +01:00
On first run of calibre, ensure the columns are sized appropriately
This commit is contained in:
parent
db4416a736
commit
27749486e2
1 changed files with 2 additions and 0 deletions
|
|
@ -292,6 +292,8 @@ def initialize(self, library_path, db, listener, actions, show_gui=True):
|
|||
self.library_view.model().books_added(1)
|
||||
if hasattr(self, 'db_images'):
|
||||
self.db_images.reset()
|
||||
if self.library_view.model().rowCount(None) < 3:
|
||||
self.library_view.resizeColumnsToContents()
|
||||
|
||||
self.library_view.model().count_changed()
|
||||
self.bars_manager.database_changed(self.library_view.model().db)
|
||||
|
|
|
|||
Loading…
Reference in a new issue