fix: keep Subprofiles▸Remove menu in sync with subprofile changes

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-13 12:15:07 +02:00
parent 6a71386ed8
commit 35ea1baec8
+4
View File
@@ -5152,6 +5152,10 @@ class MainWindow(QMainWindow):
self._transport_row.insertWidget(anchor + i, btn) self._transport_row.insertWidget(anchor + i, btn)
self._subprofile_btns.append(btn) self._subprofile_btns.append(btn)
self._rebuild_format_buttons() 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): def _add_subprofile(self):
from PyQt6.QtWidgets import QMenu from PyQt6.QtWidgets import QMenu