mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
On first run of calibre, ensure the columns are sized appropriately
This commit is contained in:
parent
db4416a736
commit
27749486e2
@ -292,6 +292,8 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
|||||||
self.library_view.model().books_added(1)
|
self.library_view.model().books_added(1)
|
||||||
if hasattr(self, 'db_images'):
|
if hasattr(self, 'db_images'):
|
||||||
self.db_images.reset()
|
self.db_images.reset()
|
||||||
|
if self.library_view.model().rowCount(None) < 3:
|
||||||
|
self.library_view.resizeColumnsToContents()
|
||||||
|
|
||||||
self.library_view.model().count_changed()
|
self.library_view.model().count_changed()
|
||||||
self.bars_manager.database_changed(self.library_view.model().db)
|
self.bars_manager.database_changed(self.library_view.model().db)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user