Use a simple menubar for addcards on macOS

This makes initial-open and reopen behaviour consistent.

Closes #3659
This commit is contained in:
Damien Elmes 2025-01-26 17:03:58 +11:00
parent 7884edfd3a
commit 71ae5a6b67
2 changed files with 8 additions and 1 deletions

View file

@ -57,7 +57,8 @@ class AddCards(QMainWindow):
gui_hooks.operation_did_execute.append(self.on_operation_did_execute)
restoreGeom(self, "add")
gui_hooks.add_cards_did_init(self)
self.setMenuBar(None)
if not is_mac:
self.setMenuBar(None)
self.show()
def set_deck(self, deck_id: DeckId) -> None:

View file

@ -91,6 +91,12 @@
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menu_Edit">
<property name="title">
<string>qt_accel_edit</string>
</property>
</widget>
<addaction name="menu_Edit"/>
</widget>
</widget>
<resources>