From 2b4e003caf3c16eba724a284817d6499452377a0 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 28 Oct 2022 13:22:00 +0100 Subject: [PATCH] Speed up marking track as next --- app/musicmuster.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/musicmuster.py b/app/musicmuster.py index aac5f2f..f6a5ef3 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -1147,8 +1147,12 @@ class Window(QMainWindow, Ui_MainWindow): # Update headers self.update_headers() - # Populate 'info' tabs with Wikipedia info - self.tabInfolist.open_in_wikipedia(track.title) + # Populate 'info' tabs with Wikipedia info, but queue it because + # it isn't quick + track_title = track.title + QTimer.singleShot( + 1, lambda: self.tabInfolist.open_in_wikipedia(track_title) + ) def tick(self) -> None: """