From 35ea1baec8db760478dc82607fd251e046bac93e Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 13 Jun 2026 12:15:07 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20keep=20Subprofiles=E2=96=B8Remove=20menu?= =?UTF-8?q?=20in=20sync=20with=20subprofile=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index df913c3..0fdcca4 100755 --- a/main.py +++ b/main.py @@ -5152,6 +5152,10 @@ class MainWindow(QMainWindow): self._transport_row.insertWidget(anchor + i, btn) self._subprofile_btns.append(btn) self._rebuild_format_buttons() + # Keep the Edit ▸ Subprofiles ▸ Remove submenu in sync. Guarded because + # this method runs in __init__ before _build_menubar creates the menu. + if hasattr(self, "_menu_subprofiles_remove"): + self._rebuild_remove_subprofile_menu() def _add_subprofile(self): from PyQt6.QtWidgets import QMenu