mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Avoid Qt's automatic About labeling
It gets confused by our launcher process, and provides no way to alter the default assigned text while keeping the About role on a Mac.
This commit is contained in:
parent
630bdd3189
commit
7edd9221ac
3 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
qt-accel-about = &About
|
||||
qt-accel-about-mac = About Anki...
|
||||
qt-accel-cards = &Cards
|
||||
qt-accel-check-database = &Check Database
|
||||
qt-accel-check-media = Check &Media
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
<string>qt_accel_about</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<enum>QAction::AboutRole</enum>
|
||||
<enum>QAction::MenuRole::ApplicationSpecificRole</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionUndo">
|
||||
|
|
|
@ -1405,6 +1405,7 @@ title="{}" {}>{}</button>""".format(
|
|||
qconnect(m.actionDocumentation.triggered, self.onDocumentation)
|
||||
qconnect(m.actionDonate.triggered, self.onDonate)
|
||||
qconnect(m.actionAbout.triggered, self.onAbout)
|
||||
m.actionAbout.setText(tr.qt_accel_about_mac())
|
||||
|
||||
# Edit
|
||||
qconnect(m.actionUndo.triggered, self.undo)
|
||||
|
|
Loading…
Reference in a new issue