Fix sometimes rows too tall after loading playlist
This commit is contained in:
parent
33fdc40f66
commit
bf438c3d99
@ -8,6 +8,7 @@ from PyQt6.QtCore import (
|
|||||||
QObject,
|
QObject,
|
||||||
QItemSelection,
|
QItemSelection,
|
||||||
Qt,
|
Qt,
|
||||||
|
QTimer,
|
||||||
)
|
)
|
||||||
from PyQt6.QtGui import QAction, QKeyEvent
|
from PyQt6.QtGui import QAction, QKeyEvent
|
||||||
from PyQt6.QtWidgets import (
|
from PyQt6.QtWidgets import (
|
||||||
@ -204,6 +205,7 @@ class PlaylistTab(QTableView):
|
|||||||
# Load playlist rows
|
# Load playlist rows
|
||||||
self.setModel(self.proxy_model)
|
self.setModel(self.proxy_model)
|
||||||
self._set_column_widths()
|
self._set_column_widths()
|
||||||
|
QTimer.singleShot(0, lambda: self.resizeRowsToContents())
|
||||||
|
|
||||||
# ########## Overrident class functions ##########
|
# ########## Overrident class functions ##########
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user