mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
make the close button an application shortcut, raise window for osx terminal
This commit is contained in:
parent
a2713450a7
commit
75fb9a111e
2 changed files with 8 additions and 2 deletions
|
@ -78,6 +78,9 @@ class AnkiQt(QMainWindow):
|
|||
ui.splash.update()
|
||||
self.setupErrorHandler()
|
||||
self.setupMisc()
|
||||
# activate & raise is useful when run from the command line on osx
|
||||
self.activateWindow()
|
||||
self.raise_()
|
||||
self.loadPlugins()
|
||||
self.setupAutoUpdate()
|
||||
self.rebuildPluginsMenu()
|
||||
|
@ -2833,7 +2836,7 @@ Consider backing up your media directory first."""))
|
|||
self.setUnifiedTitleAndToolBarOnMac(True)
|
||||
self.mainWin.actionMarkCard.setShortcut(_("Alt+m"))
|
||||
self.mainWin.verticalLayout_14.setContentsMargins(2,2,2,2)
|
||||
# mac users expect a minimum option
|
||||
# mac users expect a minimize option
|
||||
self.minimizeShortcut = QShortcut("Ctrl+m", self)
|
||||
self.connect(self.minimizeShortcut, SIGNAL("activated()"),
|
||||
self.onMacMinimize)
|
||||
|
|
|
@ -2716,7 +2716,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>617</width>
|
||||
<height>26</height>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuHelp">
|
||||
|
@ -2941,6 +2941,9 @@
|
|||
<property name="shortcut">
|
||||
<string>Ctrl+W</string>
|
||||
</property>
|
||||
<property name="shortcutContext">
|
||||
<enum>Qt::ApplicationShortcut</enum>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSave">
|
||||
<property name="icon">
|
||||
|
|
Loading…
Reference in a new issue