Skip to content

Commit

Permalink
[bugfix](gui) clear nav_btns before switch provider (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven authored Nov 30, 2024
1 parent eab0702 commit 311e4e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions feeluown/gui/uimain/provider_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ def _add_btn(self, btn):
self._btn_layout.addWidget(btn)

def _clear_btns(self):
for btn in self._btn_layout.children():
btn.deleteLater()
for _ in range(self._btn_layout.count()):
item = self._btn_layout.takeAt(0)
item.widget().deleteLater()
del item

def _create_playlist(self):
provider_ui = self._app.current_pvd_ui_mgr.get()
Expand Down

0 comments on commit 311e4e8

Please sign in to comment.