mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Use a simple menubar for addcards on macOS
This makes initial-open and reopen behaviour consistent. Closes #3659
This commit is contained in:
parent
7884edfd3a
commit
71ae5a6b67
2 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue