Remove the first tab until the list of tabs is empty

main
Juan Pablo Kutianski 2021-05-27 23:32:50 -03:00 committed by Ilya Zhuravlev
parent 402b05a3b9
commit 1a9b71298b
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ class MacroRecorder(BasicEditor):
self.keyboard = self.device.keyboard
# only show the number of macro editors that keyboard supports
for x in range(self.tabs.count()):
self.tabs.removeTab(x)
while self.tabs.count() > 0:
self.tabs.removeTab(0)
for x, w in enumerate(self.macro_tab_w[:self.keyboard.macro_count]):
self.tabs.addTab(w, "")