forked from CastroFidel/winehelper
fixed frame deletion
This commit is contained in:
@ -685,9 +685,12 @@ class WineHelperGUI(QMainWindow):
|
||||
if self.current_active_button in self.installed_buttons:
|
||||
self.current_active_button = None
|
||||
|
||||
# Очистить существующие кнопки
|
||||
for btn in self.installed_buttons:
|
||||
btn.deleteLater()
|
||||
# Полностью очищаем layout перед обновлением, удаляя старые виджеты (рамки с кнопками)
|
||||
while self.installed_scroll_layout.count():
|
||||
item = self.installed_scroll_layout.takeAt(0)
|
||||
widget = item.widget()
|
||||
if widget:
|
||||
widget.deleteLater()
|
||||
self.installed_buttons.clear()
|
||||
|
||||
if not os.path.exists(Var.USER_WORK_PATH):
|
||||
|
Reference in New Issue
Block a user