Skip to content

Commit c88bdda

Browse files
committed
Disabling stations rendering when search window is open; speeds up things a lot
1 parent 6c4ed19 commit c88bdda

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyradio/radio.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6475,6 +6475,13 @@ def _redisplay_stations_and_playlists(self):
64756475
self.bodyWin.move(0, 0)
64766476
except:
64776477
pass
6478+
if self._redisplay_list[-1][0] ==self.ws.BROWSER_SEARCH_MODE and \
6479+
self._redisplay_list[-2][0] == self.ws.NORMAL_MODE:
6480+
if logger.isEnabledFor(logging.DEBUG):
6481+
logger.debug('---=== Not displaying stations (Radio Browser window follows) ===---')
6482+
self.outerBodyWin.refresh()
6483+
self.bodyWin.refresh()
6484+
return
64786485
self._print_body_header()
64796486
pad = len(str(self.startPos + self.bodyMaxY))
64806487

0 commit comments

Comments
 (0)