fix: scroll to selected item to prevent list jumping on click
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1487,6 +1487,7 @@ class PlaylistWidget(QListWidget):
|
||||
else:
|
||||
tag = ""
|
||||
item.setText(f"▶ {tag}{os.path.basename(self._paths[row])}")
|
||||
self.scrollToItem(item, QListWidget.ScrollHint.EnsureVisible)
|
||||
self.file_selected.emit(self._paths[row])
|
||||
|
||||
def _refresh_item_text(self, row: int) -> None:
|
||||
|
||||
Reference in New Issue
Block a user