mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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,6 +57,7 @@ class AddCards(QMainWindow):
|
||||||
gui_hooks.operation_did_execute.append(self.on_operation_did_execute)
|
gui_hooks.operation_did_execute.append(self.on_operation_did_execute)
|
||||||
restoreGeom(self, "add")
|
restoreGeom(self, "add")
|
||||||
gui_hooks.add_cards_did_init(self)
|
gui_hooks.add_cards_did_init(self)
|
||||||
|
if not is_mac:
|
||||||
self.setMenuBar(None)
|
self.setMenuBar(None)
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,12 @@
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<widget class="QMenu" name="menu_Edit">
|
||||||
|
<property name="title">
|
||||||
|
<string>qt_accel_edit</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<addaction name="menu_Edit"/>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
Loading…
Reference in a new issue