31
31
import os
32
32
import sys
33
33
34
+ from qgis .core import QgsApplication
34
35
from qgis .PyQt .QtCore import Qt , QCoreApplication , QDir
35
36
from qgis .PyQt .QtWidgets import QMenu , QAction
36
37
from qgis .PyQt .QtGui import QIcon
@@ -92,16 +93,6 @@ def initGui(self):
92
93
self .iface .registerMainWindowAction (self .historyAction , 'Ctrl+Alt+H' )
93
94
self .menu .addAction (self .historyAction )
94
95
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
-
105
96
self .resultsAction = QAction (
106
97
QIcon (os .path .join (cmd_folder , 'images' , 'results.png' )),
107
98
self .tr ('&Results Viewer...' ), self .iface .mainWindow ())
@@ -123,6 +114,18 @@ def initGui(self):
123
114
self .iface .registerMainWindowAction (self .commanderAction ,
124
115
self .tr ('Ctrl+Alt+D' ))
125
116
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
+
126
129
initializeMenus ()
127
130
createMenus ()
128
131
0 commit comments