3131import os
3232import sys
3333
34+ from qgis .core import QgsApplication
3435from qgis .PyQt .QtCore import Qt , QCoreApplication , QDir
3536from qgis .PyQt .QtWidgets import QMenu , QAction
3637from qgis .PyQt .QtGui import QIcon
@@ -92,16 +93,6 @@ def initGui(self):
9293 self .iface .registerMainWindowAction (self .historyAction , 'Ctrl+Alt+H' )
9394 self .menu .addAction (self .historyAction )
9495
95- self .configAction = QAction (
96- QIcon (os .path .join (cmd_folder , 'images' , 'config.png' )),
97- self .tr ('&Options...' ), self .iface .mainWindow ())
98- self .configAction .setObjectName ('configAction' )
99- self .configAction .setMenuRole (QAction .NoRole )
100-
101- self .configAction .triggered .connect (self .openConfig )
102- self .iface .registerMainWindowAction (self .configAction , 'Ctrl+Alt+C' )
103- self .menu .addAction (self .configAction )
104-
10596 self .resultsAction = QAction (
10697 QIcon (os .path .join (cmd_folder , 'images' , 'results.png' )),
10798 self .tr ('&Results Viewer...' ), self .iface .mainWindow ())
@@ -123,6 +114,18 @@ def initGui(self):
123114 self .iface .registerMainWindowAction (self .commanderAction ,
124115 self .tr ('Ctrl+Alt+D' ))
125116
117+ self .menu .addSeparator ()
118+
119+ self .configAction = QAction (
120+ QIcon (QgsApplication .getThemeIcon ('mActionOptions.svg' )),
121+ self .tr ('&Options...' ), self .iface .mainWindow ())
122+ self .configAction .setObjectName ('configAction' )
123+ self .configAction .setMenuRole (QAction .NoRole )
124+
125+ self .configAction .triggered .connect (self .openConfig )
126+ self .iface .registerMainWindowAction (self .configAction , 'Ctrl+Alt+C' )
127+ self .menu .addAction (self .configAction )
128+
126129 initializeMenus ()
127130 createMenus ()
128131
0 commit comments